Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
pras2007
Posting Yak Master
216 Posts |
Posted - 2009-04-22 : 06:39:15
|
Hello,Does anybody knows why when I restore a database, some users are not able to login? How can I resolve this problem? Please advice.Thanks |
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2009-04-22 : 06:54:33
|
Because it's restored from another server and the logins have a different sid so don't map to the database users.(or maybe the logins don't exist on this server?)==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
pras2007
Posting Yak Master
216 Posts |
Posted - 2009-04-23 : 06:00:57
|
Thanks for the response NR, but how can I resolve the sid issues? Please advice. Thanks. |
 |
|
tclaw
Starting Member
5 Posts |
Posted - 2009-04-23 : 11:22:00
|
Look at the sp_change_users_login procedure. It will map the old user in the database to the database logon while still preserving all permissions assigned at the database level. |
 |
|
|
|
|