Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server Duplication 1

Status
Not open for further replies.

YL5956

MIS
Joined
Jul 11, 2001
Messages
73
Location
US
Hello all,

I'm interesting in cloning SQL Server from our production server to a test server. This would include all database, store procedures, permissions etc. What is the easiest most efficient way to accomplish this? Thanks.
 
Assuming you have installed SQL Server on the 2nd Server, use one of the following procedures.[ol][li]Restore backups from the 1st server OR
[li]Stop SQL server on the 1st Server OR
Detach the databases (see sp_detach_db in SQL BOL)
Copy the MDF and LDF files to the 2nd server
Attach the databases on the 2nd server. (see sp_attach_db)[/ol]It is common to have mismatches between logins and users when moving databases from one server to another. You can easily fix that problem with sp_change_users_login.

Check this article for more info.

Fixing broken logins and transferring passwords
Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top