Groups | Blog | Home
all groups > sql server (alternate) > july 2003 >

sql server (alternate) : Logins dont work after restoring on backup server


funkdm1 NO[at]SPAM yahoo.com
7/11/2003 5:51:21 AM
I am doing a complete backup on a sql 7 db and then doing a complete
restore (with overwrite existing db) on a sql 2000 server. This is now
our hot standby server. I have the process automated and it works
great. The only problem I have now is the logins dont work.

I have tried running EXEC sp_change_users_login 'Report', and the
logins appear.
However, when I run EXEC sp_helplogins 'joe', the results are empty.

So, I am guessing all I need is a sp that will re-associate my logins
with the correct db and grant the appropriate permissions.

If anyone has any ideas that would be great.

I have also considered doing a log ship instead of a full backup and
restore. Does anyone have any suggections or good examples of how to
make that happen?

clockworkoi
7/11/2003 3:56:55 PM

Uzytkownik "Dave" <funkdm1@yahoo.com> napisal w wiadomosci
news:f5174e0f.0307110451.5a75ae07@posting.google.com...
[quoted text, click to view]

O course, because they are stored in master-->sysxlogins table.
You have only database users in your database, but they are not connected
with logins.

[quoted text, click to view]

O fourse, becaues sp _helplogins provides information about logins and the
associated users in each database, but they are not exist, right (its not
the same database master)

[quoted text, click to view]

Use sp_change_users procedure with Auto_Fix option (but be cousious. Why?
See BOL ;)

[quoted text, click to view]

I hope it will be enough.

[quoted text, click to view]
Hmm? Can you specify? I don tunderstand what is you problem (sorry, probably
my english is not enough:(

regards
Marcin D

AddThis Social Bookmark Button