We have SQL Server Express 2008 on a production server. For the database in question we need to ensure that the local development version is identically configured to that on the production server.
In the production db the User dbo has a blank login.
In the local db the User dbo is using the login of the local machine's administrator.
I can change the dbo to be a different login (say sa) on both machines, but I don't really want to mess with the production setup.
So, 2 questions:
Are there legitimate (e.g. security) reasons to have a db's
dbouser with an empty login, or is it poor/incomplete setup?If there is nothing wrong with it, how can I remove the login from the local database's
dbouser?
Thanks for all guidance!
The database user
dbois unique, as in logins in thesysadminfixed server role are automatically mapped to it. That's probably what you mean by "blank login".Are you using the
salogin or another login withsysadminprivileges to access the database?