简体   繁体   English

SQL Server Express 2008数据库用户dbo(空白登录)

[英]SQL Server Express 2008 database User dbo with blank Login

We have SQL Server Express 2008 on a production server. 我们在生产服务器上安装了SQL Server Express 2008。 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. 在生产数据库中,用户dbo登录为空。

In the local db the User dbo is using the login of the local machine's administrator. 在本地数据库中,用户dbo使用本地计算机管理员的登录名。

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. 我可以将dbo更改为两台机器上的其他登录名(例如sa ),但是我真的不想弄乱生产设置。

So, 2 questions: 因此,有2个问题:

  1. Are there legitimate (eg security) reasons to have a db's dbo user with an empty login, or is it poor/incomplete setup? 是否有正当(例如安全性)原因使数据库的dbo用户登录为空,或者设置不正确/设置不完整?

  2. If there is nothing wrong with it, how can I remove the login from the local database's dbo user? 如果没有问题,如何从本地数据库的dbo用户中删除登录名?

Thanks for all guidance! 感谢您的指导!

The database user dbo is unique, as in logins in the sysadmin fixed server role are automatically mapped to it. 数据库用户dbo是唯一的,因为在sysadmin固定服务器角色的登录名中会自动映射到该用户。 That's probably what you mean by "blank login". 这可能就是您所说的“空白登录”。

Are you using the sa login or another login with sysadmin privileges to access the database? 您是使用sa登录名还是具有sysadmin特权的其他登录名访问数据库?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM