2005/2008 上的同步 SQL 登录实用程序 [英] Sync SQL Logins utility on 2005/2008
问题描述
在将数据库恢复到不同的服务器后,有没有人指出我的同步 sql server 登录名的实用程序?
Anyone point my at a utility for syncing sql server logins after restoring a database to a different server?
我知道我可以用脚本来做到这一点,但我一直在使用一个很棒的小实用程序 - 'Db Maint Sync SQL Logins' (http://www.dbmaint.com/SyncSqlLogins.asp) 在 sql server 2000 上执行此操作,不幸的是它不支持 2005,我不愿意回到实际思考:-)
I know I can do it with scripts, but I've been using a wonderful little utility - 'Db Maint Sync SQL Logins' (http://www.dbmaint.com/SyncSqlLogins.asp) to do it on sql server 2000 which unfortunately doesn't support 2005 and I'm loath to go back to actually thinking :-)
推荐答案
sp_change_users_login
使用 Update_One
操作可以将数据库中的登录映射到新服务器上的用户.
sp_change_users_login
with the Update_One
action can map a login in a database to a user on a new server.
这篇关于2005/2008 上的同步 SQL 登录实用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!