I have database that has multiple schemas and objects under them. I want to consolidate the objects into one schema.
I tried
ALTER SCHEMA dbo TRANSFER <custom_schema>.<table_name>
I get an
object already exists message
However, I can't see it in the Management studio and
SELECT * from dbo.<table_name>
returns
object does not exist.
Looks like some system table entry is out of whack. I looked at sysobjects and it has only one entry for . Any suggestions on how to trouble shoot/ fix this issue is welcome.
Note: I can create a synonym
CREATE SYNONYM dbo.<table_name> FOR <custom_schema>.<table_name>
works fine