Monday, January 29, 2007
Monday, January 29, 2007 2:03:03 PM (SE Asia Standard Time, UTC+07:00) (SQL Server)

The following MS link - http://support.microsoft.com/kb/274188/ - will help you to troubleshoot and fix orphaned logins in a database, re-joining the database username to the SQL Server Login.

However if you've moved a database from one machine (A) to another (B) using the attach database method and B doesn't have the logins available to be fixed in the first place - then you need to create the required SQL Server logins first. MS have a great helper script that will extract the Login name, SID, default database and password as well as create a script that can be run on the new machine B to re-create all the required logs (and SIDs). You won't need to fixed any orphaned users since the user information in the newly attached DB and SQL Servers login information will now match.

http://support.microsoft.com/kb/246133/- How to transfer logins and passwords between instances of SQL Server.

A huge time saver and makes moving a DB using the attach method a breeze.

OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, em, i, strike, strong, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Live Comment Preview

Search

Categories

On this page

Archive

Total Posts: 67
This Year: 0
This Month: 0
This Week: 0
Comments: 16