Re: SQL Server 2000 Virtual Server Renaming

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: BarryLynch (allspammustdie_at_yahoo.com)
Date: 07/30/04


Date: 30 Jul 2004 03:29:42 -0700

Hi Uttam et al
I've just seen your most recent posting now having already just posted
my own (identical) approach so we are officially agreed then. :-)

A Cluster/SQL Server urban legend bites the dust.

uttamkp@online.microsoft.com (Uttam Parui[MS]) wrote in message news:<$3V7#NedEHA.3424@cpmsftngxa10.phx.gbl>...
> Barry,
>
> Just to confirm that the steps I mentioned works, I did a bit of testing on a test server. Here are the scenarios I tried
>
> Scenario 1 -- Renaming default instance virtual sql server (vss) name
> (For simplicity -- all mdf and ldf files were on same Data folder)
> -------------------------------------------------------------------------------------------------------------------------------------------
> 1) Took backup of the mdf and ldf files. i.e. backed up Data folder.
> 2) Uninstalled default instance virtual sql server (vss). Reinstalled virtual sql server with new virtual server name. Applied SQL Server service packs and patches that were there before
> 3) Took vss resource offline. Replaced new Data folder with backup taken in step 1. Took vss resource online. Came online. Performed failover -- worked as expected
> 4) Ran select @@servername. It gave old virtual server name. Ran
> exec sp_dropserver 'old virtual server name'
> go
> exec sp_addserver 'new virtual server name' , 'local'
> go
> Recylcled vss. Ran select @@servername -->returned new virtual server name (As expected)
>
> Scenario 2 -- Renaming named instance virtual sql server (vss) name (instance name same)
> (For simplicity -- all mdf and ldf files were on same Data folder)
> -------------------------------------------------------------------------------------------------------------------------------------------
> 1) Took backup of the mdf and ldf files. i.e. backed up Data folder.
> 2) Uninstalled named instance virtual sql server (vss). Reinstalled virtual sql server with new virtual server name. But I kept the same instance name. Applied SQL Server service packs and patches that were there
> before
> 3) Took vss resource offline. Replaced new Data folder with backup taken in step 1. Took vss resource online. Came online. Performed failover -- worked as expected
> 4) Ran select @@servername. It gave old virtual server name\instance name. Ran
> exec sp_dropserver 'old virtual server name\instance name'
> go
> exec sp_addserver 'new virtual server name\instance name' , 'local'
> go
> Recylcled vss. Ran select @@servername -->returned new virtual server name\instance name (As expected)
>
> Scenario 3 -- Renaming named instance virtual sql server (vss) name (In this case I changed the instance name also)
> (For simplicity -- all mdf and ldf files were on same Data folder)
> -------------------------------------------------------------------------------------------------------------------------------------------
> 1) Took backup of the mdf and ldf files. i.e. backed up Data folder.
> 2) Uninstalled named instance virtual sql server (vss). Reinstalled virtual sql server with new virtual server name and new instance name. Applied SQL Server service packs and patches that were there before
> 3) Took vss resource offline. Replaced new Data folder with backup taken in step 1. Took vss resource online. Resource Failed.
> Did usual troubleshooting ;) . Found that SQL was not getting the mdf and ldf files for all dbs except master. It gets info for master from registry. It was looking for
> G:\Program Files\Microsoft SQL Server\MSSQL$OldInstanceName\Data folder
>
> whereas now I had put the Data folder in
>
> G:\Program Files\Microsoft SQL Server\MSSQL$NewInstanceName
>
> Easiest way to solve was to create the folder it was looking for and then SQL came online. They are other ways to fix this but it is outside the scope of this posting.
> 4) Ran select @@servername. It gave old virtual server name\old instance name. Ran
> exec sp_dropserver 'old virtual server name\old instance name'
> go
> exec sp_addserver 'new virtual server name\new instance name' , 'local'
> go
> Recylcled vss. Ran select @@servername -->returned new virtual server name\new instance name (As expected)
>
> P.S: For a production environment, I will also take SQL Server backups of ALL dbs (system and user dbs) --- just in case ;) Ofcourse, before uninstalling SQL I should know the collation, sort order of SQL Server as
> I will need these for the new install. I have seen many cases where the dba did not know have any info about old sql server that was already uninstalled, all they had was sql backups. Depending upon the
> complexity these cases can take a lot of time to resolve ;)
>
> HTH,
>
> Best Regards,
>
> Uttam Parui
> Microsoft Corporation
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> Are you secure? For information about the Strategic Technology Protection Program and to order your FREE Security Tool Kit, please visit http://www.microsoft.com/security.
>
> Microsoft highly recommends that users with Internet access update their Microsoft software to better protect against viruses and security vulnerabilities. The easiest way to do this is to visit the following websites:
> http://www.microsoft.com/protect
> http://www.microsoft.com/security/guidance/default.mspx



Relevant Pages

  • RE: Server cant be seen from the network
    ... Microsoft CSS Online Newsgroup Support ... I discovered that if I turned the SQL server ... NAT issues caused with the installation of the "full" SQL ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot setup SQL Mail on SBS 2003
    ... the newsgroups are staffed weekdays by Microsoft Support professionals to ... server since Exchange server has intalled on the box. ... However if you want to configure SQL to send mail you need to install ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • RE: VSS Errors using NTBackup
    ... BTW this server is also running ISA2004 SP2 logging to MSDE. ... net start "Microsoft Firewall" ... This newsgroup only focuses on SBS technical issues. ... On a SQL Server ...
    (microsoft.public.windows.server.sbs)
  • RE: Problems upgrading SQL MSDE for Sharepoint
    ... I am glad to know the upgrade Sharepoint ... Microsoft CSS Online Newsgroup Support ... With this working I was able to start upgrading SQL MSDE for SharePoint. ... >white paper to backup your SBS server first. ...
    (microsoft.public.windows.server.sbs)
  • RE: Monitoring & Reporting Wont install! (msde install fails!)
    ... Perform a clean boot on the server. ... SQL Server SP4\MSDE". ... Please paste the output in the newsgroup. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)