Home
|
Weblogs
|
Forums
|
SQL Server Links
Search:
Active Forum Topics
|
Popular Articles
|
All Articles by Tag
|
SQL Server Books
|
About
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
Topic
Cruiser859
Starting Member
45 Posts
Posted - 04/05/2007 : 14:37:12
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
35007 Posts
Posted - 04/05/2007 : 14:39:19
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/
Cruiser859
Starting Member
45 Posts
Posted - 04/05/2007 : 15:56:05
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
tkizer
Almighty SQL Goddess
USA
35007 Posts
Posted - 04/05/2007 : 15:58:57
Query Analyzer
Enterprise Manager is a GUI tool. To run commands, you use Query Analyzer.
Tara Kizer
http://weblogs.sqlteam.com/tarad/
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
General SQL Server Forums
New to SQL Server Programming
New to SQL Server Administration
Script Library
Data Corruption Issues
Database Design and Application Architecture
SQL Server 2012 Forums
Transact-SQL (2012)
SQL Server Administration (2012)
SSIS and Import/Export (2012)
Analysis Server and Reporting Services (2012)
Replication (2012)
Availability Groups and DR (2012)
Other SQL Server 2012 Topics
SQL Server 2008 Forums
Transact-SQL (2008)
SQL Server Administration (2008)
SSIS and Import/Export (2008)
High Availability (2008)
Replication (2008)
Analysis Server and Reporting Services (2008)
Other SQL Server 2008 Topics
SQL Server 2005 Forums
Transact-SQL (2005)
SQL Server Administration (2005)
.NET Inside SQL Server (2005)
SSIS and Import/Export (2005)
Service Broker (2005)
Replication (2005)
High Availability (2005)
Analysis Server and Reporting Services (2005)
Express Edition and Compact Edition (2005)
Other SQL Server Topics (2005)
SQL Server 2000 Forums
SQL Server Development (2000)
SQL Server Administration (2000)
Import/Export (DTS) and Replication (2000)
Transact-SQL (2000)
Analysis Services (2000)
MSDE (2000)
Development Tools
ASP.NET
Reporting Services Development
Other Development Tools
Site Related Forums
Site Related Discussions
Article Discussion
Poll Discussion
The Yak Corral
Other Forums
SQL Server 6.5 \ SQL Server 7.0
Other Topics
MS Access
ClearTrace Support Forum
Old Forums
CLOSED - General SQL Server
CLOSED - SQL Server 2005/Yukon
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
SQL Server Forums
© 2000-2009 SQLTeam Publishing, LLC
This page was generated in 0.08 seconds.