Move/Copy System DB’s to new server in SQL 2005

5 pts.
Tags:
Database migration
SQL
SQL 2005
Virtual Server
Trying to move system DB's to brand new server (really virtualized server). Server names are different. Any suggestions would be appreciated.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Bring up the SQL Server into single user mode and restore the master database.

<pre>From the command prompt find the folder that the sqlservr.exe is in and run it with the -c and -m switches. Leave the command prompt open as SQL Server is running in this window for now.</pre>

Then use the sp_dropserver / sp_addserver commands as if you were renaming the SQL Server.

<pre>exec sp_dropserver ‘OldServerName’
exec sp_addserver ‘NewServerName’, ‘local’</pre>

You can then restore the msdb database if needed. If all you have is a few jobs, just script them out and create them on the new server.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following