How to resolve Sql Server Error Message 117 - Too many prefixes for object name?
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 email@example.com.
Im trying to alter the schema of these objects to put them into a dbo schema using:
ALTER SCHEMA dbo TRANSFER firstname.lastname@example.org
But i get Error Message 117:
The object name 'email@example.comExceptionLog' 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 firstname.lastname@example.org 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 [email@example.com].tablename