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
dbo
user 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
dbo
user?
Thanks for all guidance!
The database user
dbo
is unique, as in logins in thesysadmin
fixed server role are automatically mapped to it. That's probably what you mean by "blank login".Are you using the
sa
login or another login withsysadmin
privileges to access the database?