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?
ThanxUzytkownik "Dave" <funkdm1@.yahoo.com> napisal w wiadomosci
news:f5174e0f.0307110451.5a75ae07@.posting.google.c om...
> 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.
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.
> 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.
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)
> 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.
Use sp_change_users procedure with Auto_Fix option (but be cousious. Why?
See BOL ;)
> If anyone has any ideas that would be great.
I hope it will be enough.
> 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?
Hmm? Can you specify? I don tunderstand what is you problem (sorry, probably
my english is not enough:(
regards
Marcin D
No comments:
Post a Comment