Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Virtual Server

Vista - Move VHD - SQL Instance Name Changes

Reply
 
Old 12-02-2008   #1 (permalink)
John Schneider


 
 

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 SpecsSystem Spec
Old 12-16-2008   #2 (permalink)
John Schneider


 
 

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 SpecsSystem Spec
Old 12-16-2008   #3 (permalink)
Bo Berglund


 
 

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
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)
My System SpecsSystem Spec
Old 12-16-2008   #4 (permalink)
John Schneider


 
 

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)
>
Thanks for the reply Bo, but I've posted there also and still no replies.

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 SpecsSystem Spec
Old 12-16-2008   #5 (permalink)
Bo Berglund


 
 

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)
>>
>Thanks for the reply Bo, but I've posted there also and still no replies.
>
>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!
When you say you copied the VHD file over to another computer and used
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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46