更改用户的登录 下面的示例更改 pubs 数据库中的用户 Mary 与现有登录之间的链接,链接到新的登录 NewMary 上(使用 sp_addlogin 添加)。--Add the new login. USE master go EXEC sp_addlogin 'NewMary' go--Change the user account to link with the 'NewMary' login. USE pubs go EXEC sp_change_users_login 'Update_One', 'Mary', 'NewMary'
下面的示例更改 pubs 数据库中的用户 Mary 与现有登录之间的链接,链接到新的登录 NewMary 上(使用 sp_addlogin 添加)。--Add the new login.
USE master
go
EXEC sp_addlogin 'NewMary'
go--Change the user account to link with the 'NewMary' login.
USE pubs
go
EXEC sp_change_users_login 'Update_One', 'Mary', 'NewMary'
sp_change_users_login 'update_one','数据库用户名','SQL SERVER登录名'
问题解决了!感激!
sp_change_users_login 'update_one','数据库用户名','SQL SERVER登录名'
这个好不行啊,请问具体怎么操作?谢谢了。