![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Move VHD - SQL Instance Name Changes I have a test environment setup under VS 2005 R2. The VM is running Windows Server 2003 with SQL Server 2005. I copied the VHD over to another physical box, but when I bring it up, the SQL Server instance name is different. In the original VM on the original host system, the SQL instance name is something like "ABC-XYZ", and the computer name is "JSELK46". I then copy the VHD over to the new host machine, create a new VM in VS, using the copy of the VHD. When I bring it up, one of my apps that access SQL errors out, since it can't find that SQL instance. I just discovered that the SQL instance name is now "JSELK46", which is the VM's computer name. All of the databases and tables are intact, but the instance name was lost. Any idea how/why this happens? Its a real pain to have to go change all references to the SQL instance name. Thanks |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Move VHD - SQL Instance Name Changes Does anyone have any ideas about this? "John Schneider" wrote: Quote: > I have a test environment setup under VS 2005 R2. The VM is running Windows > Server 2003 with SQL Server 2005. I copied the VHD over to another physical > box, but when I bring it up, the SQL Server instance name is different. > > In the original VM on the original host system, the SQL instance name is > something like "ABC-XYZ", and the computer name is "JSELK46". I then copy > the VHD over to the new host machine, create a new VM in VS, using the copy > of the VHD. When I bring it up, one of my apps that access SQL errors out, > since it can't find that SQL instance. I just discovered that the SQL > instance name is now "JSELK46", which is the VM's computer name. All of the > databases and tables are intact, but the instance name was lost. > > Any idea how/why this happens? Its a real pain to have to go change all > references to the SQL instance name. > > Thanks |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Move VHD - SQL Instance Name Changes On Tue, 16 Dec 2008 07:23:01 -0800, John Schneider <johnmsch@xxxxxx> wrote: Quote: >Does anyone have any ideas about this? > >"John Schneider" wrote: > Quote: >> I have a test environment setup under VS 2005 R2. The VM is running Windows >> Server 2003 with SQL Server 2005. I copied the VHD over to another physical >> box, but when I bring it up, the SQL Server instance name is different. >> >> In the original VM on the original host system, the SQL instance name is >> something like "ABC-XYZ", and the computer name is "JSELK46". I then copy >> the VHD over to the new host machine, create a new VM in VS, using the copy >> of the VHD. When I bring it up, one of my apps that access SQL errors out, >> since it can't find that SQL instance. I just discovered that the SQL >> instance name is now "JSELK46", which is the VM's computer name. All of the >> databases and tables are intact, but the instance name was lost. >> >> Any idea how/why this happens? Its a real pain to have to go change all >> references to the SQL instance name. >> >> Thanks What sqlserver does when restored to a different computer is probably what they can discuss there. -- Bo Berglund (Sweden) |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Move VHD - SQL Instance Name Changes "Bo Berglund" wrote: Quote: > On Tue, 16 Dec 2008 07:23:01 -0800, John Schneider > <johnmsch@xxxxxx> wrote: > Quote: > >Does anyone have any ideas about this? > > > >"John Schneider" wrote: > > Quote: > >> I have a test environment setup under VS 2005 R2. The VM is running Windows > >> Server 2003 with SQL Server 2005. I copied the VHD over to another physical > >> box, but when I bring it up, the SQL Server instance name is different. > >> > >> In the original VM on the original host system, the SQL instance name is > >> something like "ABC-XYZ", and the computer name is "JSELK46". I then copy > >> the VHD over to the new host machine, create a new VM in VS, using the copy > >> of the VHD. When I bring it up, one of my apps that access SQL errors out, > >> since it can't find that SQL instance. I just discovered that the SQL > >> instance name is now "JSELK46", which is the VM's computer name. All of the > >> databases and tables are intact, but the instance name was lost. > >> > >> Any idea how/why this happens? Its a real pain to have to go change all > >> references to the SQL instance name. > >> > >> Thanks > This is better asked in an sql-server oriented newsgroup. > What sqlserver does when restored to a different computer is probably > what they can discuss there. > > -- > > Bo Berglund (Sweden) > BTW, just as a point of clarification, SQL Server is not being restored to a different computer. Since the VHD file is just being moved from one host to another, the actual "computer" (the Virtual Machine) is still exactly the same. That's what is driving me crazy! |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Move VHD - SQL Instance Name Changes On Tue, 16 Dec 2008 13:08:02 -0800, John Schneider <johnmsch@xxxxxx> wrote: Quote: >"Bo Berglund" wrote: > Quote: >> On Tue, 16 Dec 2008 07:23:01 -0800, John Schneider >> <johnmsch@xxxxxx> wrote: >> Quote: >> >Does anyone have any ideas about this? >> > >> >"John Schneider" wrote: >> > >> >> I have a test environment setup under VS 2005 R2. The VM is running Windows >> >> Server 2003 with SQL Server 2005. I copied the VHD over to another physical >> >> box, but when I bring it up, the SQL Server instance name is different. >> >> >> >> In the original VM on the original host system, the SQL instance name is >> >> something like "ABC-XYZ", and the computer name is "JSELK46". I then copy >> >> the VHD over to the new host machine, create a new VM in VS, using the copy >> >> of the VHD. When I bring it up, one of my apps that access SQL errors out, >> >> since it can't find that SQL instance. I just discovered that the SQL >> >> instance name is now "JSELK46", which is the VM's computer name. All of the >> >> databases and tables are intact, but the instance name was lost. >> >> >> >> Any idea how/why this happens? Its a real pain to have to go change all >> >> references to the SQL instance name. >> >> >> >> Thanks >> This is better asked in an sql-server oriented newsgroup. >> What sqlserver does when restored to a different computer is probably >> what they can discuss there. >> >> -- >> >> Bo Berglund (Sweden) >> > >BTW, just as a point of clarification, SQL Server is not being restored to a >different computer. Since the VHD file is just being moved from one host to >another, the actual "computer" (the Virtual Machine) is still exactly the >same. That's what is driving me crazy! it there you created a new virtual machine on that other PC and pointed it to the VHD file (copied). This will in actual fact make one very significant change to the SQL server PC, it changes the network card MAC address. And this is a significant change to the SQL Server I am used to (SQLServer 2000) at least. To me this counts as the PC being *restored* to another PC. SQLServer is known to do strange stuff if it is restored like this.... -- Bo Berglund (Sweden) |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| RE: two instance licensing question | Virtual PC | |||
| Move Public Folder- 'Move' option not listed | Vista file management | |||
| 64-bit vs 32-bit PowerShell instance | PowerShell | |||
| set-user -instance | PowerShell | |||
| More than one instance of WMP at a time? | Vista General | |||