dbTalk Databases Forums  

Restoring backup from SQL 2000 to SQL 2005 but login name is missing

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Restoring backup from SQL 2000 to SQL 2005 but login name is missing in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gerd
 
Posts: n/a

Default Restoring backup from SQL 2000 to SQL 2005 but login name is missing - 03-29-2007 , 01:25 AM






Hi all,

I'm having a problem restoring backup from 2000 to 2005. The actual
restore process went ok. However, the database user of the restored
database is missing a Login Name. I've made sure that the Login Name
is created in 2005. Also tried deleting the user, but couldn't the
user is db owner. Is there any way that I can assign a Login Name for
this database user or maybe drop this user and assign another one?

Regards,
Gerd


Reply With Quote
  #2  
Old   
kb
 
Posts: n/a

Default Re: Restoring backup from SQL 2000 to SQL 2005 but login name is missing - 03-29-2007 , 02:05 AM






Quote:
I'm having a problem restoring backup from 2000 to 2005. The actual
restore process went ok. However, the database user of the restored
database is missing a Login Name. I've made sure that the Login Name
is created in 2005. Also tried deleting the user, but couldn't the
user is db owner. Is there any way that I can assign a Login Name for
this database user or maybe drop this user and assign another one?
use system stored procedure:

sp_change_users_login

--
Tom
http://kbupdate.info/




Reply With Quote
  #3  
Old   
kb
 
Posts: n/a

Default Re: Restoring backup from SQL 2000 to SQL 2005 but login name is missing - 03-29-2007 , 02:08 AM



Quote:
I'm having a problem restoring backup from 2000 to 2005. The actual
restore process went ok. However, the database user of the restored
database is missing a Login Name. I've made sure that the Login Name
is created in 2005. Also tried deleting the user, but couldn't the
user is db owner. Is there any way that I can assign a Login Name for
this database user or maybe drop this user and assign another one?

use system stored procedure:
sp_change_users_login
here is online documentation:

SQL Server 2005 Books Online > sp_change_users_login:
http://msdn2.microsoft.com/en-us/library/ms174378.aspx


--
Tom
http://kbupdate.info/




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.