I'm currently looking at disaster recovery plans and restoring backups of master/msdb/model.
In theory if I restore master, msdb, model and the user databases onto a fresh server install (with the same service packs etc) then I will have an exact copy of the original server, with all the maintenance plans and jobs and everything.
But what happens if the new server name is different to the original? Does it just cope, or are there some extra steps needed in this case?
(The MSDN documentation is a bit brief in these areas)
I'm on SQL 2005.
edit: there's a couple of answers below that are helpful, but neither of them clearly answers the question as far as I can tell. My question was: after restoring master, msdb etc, (and assuming I'm not using any of that SQL encryption stuff) will everything work OK if the new server and SQL instance has a different name to the original? Or do I have to keep the same name? The accepted answer tick is still up for grabs!
Correct, everything should be identical and ready to go.
The server name change is described here: How to: Rename a Computer that Hosts a Stand-Alone Instance of SQL Server 2005
Edit, based on comment:
When you restore onto the BCP server, then you are effectively changing the server name that hosts the SQL Server instance. You do the sp_dropserver/sp_addserver
bit to make everything line up (basically, you fix @SERVERNAME)
Edit, again:
To answer your question, SQL Server will just run. Except for any code that relies on @@SERVERNAME matching the physical server name.
@@SERVERNAME takes it's information from the master database. If you restore master, then the instance thinks it has the old name. So it's an effective rename.
However, any clients don't care: they use DNS/physical server name to find the server.
More info under @@SERVERNAME about this differs from SERVERPROPERTY that will pick up the physical server name.