Groups | Blog | Home
all groups > sql server connect > august 2003 >

sql server connect : Are user/rights restored with a 'forced' restore?


Bob Brainin
8/14/2003 9:23:14 PM
I restored an early backup on SQL 7, only to find that users had been
dropped in EM. I then restored a later backup which I was sure had all the
users properly authorised, but they're still not there!

What is the correct way to administer this? Is it by ticking the individual
boxes for each table? Scripting? Setting it up in Master db and changing the
ODBC default?

TIA

Bob Brainin

Bob Brainin
8/15/2003 6:40:07 AM
Thanks Allan - and is it possible I lost the original settings by restoring
a backup?

Bob

[quoted text, click to view]

Allan Mitchell
8/15/2003 7:18:33 AM
Restoring a user database does not put back logins and what you quite often
see is Users in the database with a blank login name. This means they are
orphaned.
Logins are stored in master.

I like this article

http://support.microsoft.com/default.aspx?scid=KB;en-us;q246133


Scripting the logins would work but they will still be orphaned.

Have a look also at

sp_change_users_login

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



[quoted text, click to view]

AddThis Social Bookmark Button