I am transferring a database from one hosting provider to another. The current provider uses the domain name as part of the user name. The domain name is a .co.nz domain. So some objects in the database have a fully qualified name of user@company.co.nz.tablename.
Im trying to alter the schema of these objects to put them into a dbo schema using:
ALTER SCHEMA dbo TRANSFER user@company.co.nz.tablename
But i get Error Message 117:
The object name 'user@company.co.nz.tblExceptionLog' contains开发者_开发百科 more than the maximum number of prefixes. The maximum is 1.
In another database I get the same error message but the maximum number is 2. So obviously the maximum number of prefixes can be set... somewhere. How do I increase the maximum number of prefixes so I can transfer securables out of the user@company.co.nz and into the dbo schema?
It's interpreting your dots as different prefixes, while in fact, I'm guessing they're just part of your database name...? In that case, increasing the amount of prefixes allowed is not what you want, but rather something like this:
ALTER SCHEMA dbo TRANSFER [user@company.co.nz].tablename
精彩评论