SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Novice needs help with orphan user login name
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Cruiser859
Starting Member

45 Posts

Posted - 04/05/2007 :  14:37:12  Show Profile  Reply with Quote
Hi all

I know this is answered here but I have no clue what it is saying or where and how to run the script. http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=12615

I moved a backed up copy of my database from one server to another. I restored it but there is now an orphan user.

I ran into this problem about 3 years ago and know the fix was a lot simplier that the above reference.

Please help me understand how to get the user login name restored.

Thanks very much.

tkizer
Almighty SQL Goddess

USA
37132 Posts

Posted - 04/05/2007 :  14:39:19  Show Profile  Visit tkizer's Homepage  Reply with Quote
Just run sp_change_users_login against the one userid (@action = Update_One). Chadmat's stored procedure is when you have multiple orphaned users.

Check SQL Server Books Online for syntax.

Tara Kizer
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

Cruiser859
Starting Member

45 Posts

Posted - 04/05/2007 :  15:56:05  Show Profile  Reply with Quote
Tara

Thanks. But they fail to tell you what program to use to run sp_change_users_login.

Is this accomplished in Enterprise or QA?

sp_change_users_login [ @Action = ] 'action'
[ , [ @UserNamePattern = ] 'user' ]
[ , [ @LoginName = ] 'login' ]
[ , [ @Password = ] 'password' ]

Thanks

Stewart
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
37132 Posts

Posted - 04/05/2007 :  15:58:57  Show Profile  Visit tkizer's Homepage  Reply with Quote
Query Analyzer

Enterprise Manager is a GUI tool. To run commands, you use Query Analyzer.

Tara Kizer
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000