Question : sql users

hi

in the sql i have a ob that delete the dataBase en restor it(in test comuter) from db that in real db but one of the users dont kip the login name (i can see th name off all users but the loginName is missing
i use a job:
exec sp_change_users_login 'AUTO_FIX', 'name', Null, 'pass';
GO

Answer : sql users

Run the above command in your real db and then do a new backup / restore to testdb.

Use the stored procedure described here to to transfer logins from real to testdb:

http://support.microsoft.com/kb/246133
Random Solutions  
 
programming4us programming4us