Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 25th, 2004, 04:39 AM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default DB Restore User Logins onto different server

Hello fellow DBAs-

  Before I get to the question here's my setup.

I'm using SQL Server 2000 and have a database TempDB that has the user login UserA. UserA is setup using Windows Authentication on ServerA (Name of Server). So under SQL Server Logins it displays as "ServerA\UserA". I backed up the TempDB database on ServerA.

Now here's my question. I now want to restore the TempDB database on ServerB. When restoring the TempDB database on ServerB, the User Login is restored only as "UserA" instead of "ServerB\UserA".
Is there any way to easily restore user logins accross servers/domains instead of having to create the User Logins from scratch?

The purpose of this example is if ServerA crashes and you need to restore the database TempDB onto ServerB, what is a quick way to restore logins if ServerA is not available anymore?


 
Old November 25th, 2004, 10:36 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

yes there is many ways of doing this. One note to take under consideration. You should not be using the tempdb to store any user information. The tempdb is rebuilt each and every time SQL Server is restarted, it is what it says it is "temporary database"

http://support.microsoft.com/default...-US;Q246133#3


Jaime E. Maccou
Applications Analyst





Similar Threads
Thread Thread Starter Forum Replies Last Post
DB Restore somnath.kartic SQL Server 2005 1 July 12th, 2007 07:36 AM
restore DB error RinoDM SQL Server 2000 6 October 6th, 2006 04:18 PM
Restore from DB error... RinoDM SQL Language 0 October 6th, 2006 10:18 AM
Can ASP open a DB on user machine? (not on server) cookster Classic ASP Databases 2 October 5th, 2005 10:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.