Unix Technical Forum

Does DB-Restore on a different machine omit user/login information ?

This is a discussion on Does DB-Restore on a different machine omit user/login information ? within the SQL Server forums, part of the Microsoft SQL Server category; --> Dear group, I am a DB-Administrator for a Company that creates and maintains a software solution based on SQL-Server ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 08:24 AM
uli2003wien@lycos.at
 
Posts: n/a
Default Does DB-Restore on a different machine omit user/login information ?

Dear group,

I am a DB-Administrator for a Company that creates and maintains a
software solution based on SQL-Server and Crystal-Reports.

The Crystal-Reports part uses the following method to present data.
First a specific user (database authentification) is created with a
fixed password. Then Crystal Reports uses this
user/password-information to login to the database and present or print
the data.

I recently received a database from a customer of ours and i restored
it on my machine. It worked perfectly except that the Crystal Reports
part did not function at all (showing only blank reports).

After dropping the specific user and creating the fixed password the
thing worked.

So my question: does restoring a SQL-Server database on a different
machine alter or eliminate login and user information ?

Any reply will be highly appreciated.

Greetings from Vienna

Uli

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 08:24 AM
Simon Hayes
 
Posts: n/a
Default Re: Does DB-Restore on a different machine omit user/login information ?

Yes - logins and passwords are at the server level and are stored in
the master database, so copying a user database may 'orphan' users.
Even if you have a login with the same name and password on your own
server, then SID will be different, so it won't map correctly to a
database user. See sp_change_users_login in Books Online, and this KB
article:

http://support.microsoft.com/default...b;en-us;314546

Simon

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 08:25 AM
uli2003wien@lycos.at
 
Posts: n/a
Default Re: Does DB-Restore on a different machine omit user/login information ?


Simon Hayes schrieb:
> Yes - logins and passwords are at the server level and are stored in
> the master database, so copying a user database may 'orphan' users.
> Even if you have a login with the same name and password on your own
> server, then SID will be different, so it won't map correctly to a
> database user. See sp_change_users_login in Books Online, and this KB
> article:
>
> http://support.microsoft.com/default...b;en-us;314546
>
> Simon


THANK YOU VERY VERY MUCH

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:21 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com