Existing table names not schema-qualified
Dan Guzman
Posts: 20
I get an invalid object name error when I specify an existing data source. Looking a trace, I see the source table is not schema-qualified during the SELECT COUNT_BIG(*) query. I there a setting or work-around for this issue?
Comments
Your schema here is a non-dbo schema is it?
If yes then it is a known issue and as specified above it happens when the existing source is non-dbo schema.
So I have logged this as a bug in our internal tracking system whose tracking id is SDG-1068.
Our development team will look into this and I will update you as soon as this is fixed.
Again thanks for your patience and apologies for any inconvenience this issue has caused.
Please tell me this has been fixed. The tool doesn't work with tables not in the dbo schema!? Cmon, that is ridiculous. This was originally posted back in Sept. 2014. It is now the end January 2015 and I'm still running into this issue. Please tell me I am doing something wrong....
I need to this work.
Thanks
It is a bit odd that it the tool actually previews the data from the non-dbo schema table the user wants to pull from only then to say that it is an 'Invalid Object name' at the point of attempting the generation.
Regards.
The issue is around the statement: select count_big(*) from <table name>, where table name is not prefixed with the owner (schema), which in turn defaults to dbo.
You can verify this by running a trace against the source database.
The work around that was suggested to me by RedGate support was to move all of the data into a "dbo", which is completely unreasonable and unfeasible.
What I have done is created views in the dbo schema for the source tables that are not in the non-dbo schema, which are essentially "select * from <schema>.<table>".
There are obvious holes in this approach, but it works for my particular cases.
I like very much what i have seen so far but this is a real show-stopper.
We also make extensive use of non dbo schemas.
Why can a simple bug like this survive in your software for nearly a year now?
Is there any progress on fixing this?
Sorry for the inconvenience.
Redgate Software