Register   |   Login   |   May 20, 2012    |   Knowledge Base  >  Knowledge Base Systems  >  MSSQL  >  Get orphaned users!!!!
search:     

Phone: 480-722-1227
Toll Free: 888-722-1227

Get orphaned users!!!!
Last Post 12 Apr 2007 04:45 AM by SuperUser Account. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Chris MuenchUser is Offline
New Member
New Member
Posts:57

--
11 Apr 2007 06:48 AM  
If you do a db backup and then a restore to another server the users are usually screwed up.  And you can't just readd them as it says the users doesn't exist.  However it works now

Use dbname
go
sp_change_users_login 'update_one', 'sourceuser', 'destuser'
SuperUser AccountUser is Offline
Basic Member
Basic Member
Posts:105

--
12 Apr 2007 04:45 AM  
may need a little mor info on running this query chris
You are not authorized to post a reply.

Active Forums 4.2
Copyright 2006 - 2011 Vigilant Support   |  Privacy Statement  |  Terms Of Use