PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > Changing name instance
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Changing name instance

Réponse
 
LinkBack Outils de la discussion
Vieux 11/09/2008, 08h08   #1
tshad
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Changing name instance

On Sql Server 2000,

MSDN says to change the name of the instance you do:

sp_dropserver old_servername\instancename
GO
sp_addserver new_servername\instancename, local
GO

I tried to do this as:

sp_dropserver 'PTERADON\AW3000_INSTANCE'
GO
sp_addserver 'PTERADON\SQL2000', local
GO

and sysserver shows that the change was made.

But the EM still shows the old server and the old name if I try to delete
the Server Registration and add it back in under the new name.

It still functions as the old name fine.

How do I get it to work?

Thanks,

Tom


  Réponse avec citation
Vieux 11/09/2008, 12h46   #2
Dan Guzman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Changing name instance

> I tried to do this as:
>
> sp_dropserver 'PTERADON\AW3000_INSTANCE'
> GO
> sp_addserver 'PTERADON\SQL2000', local
> GO


This changes the internal instalnce name (@@SERVERNAME) but not the actual
(external) instance name. Unfortunately, the only way to change the
instance name is to uninstall, re-install with the desired name and
re-attach or restore the databases. After you restore/replace the master
database, you will need to use sp_dropserver/sp_addserver.

--
Hope this s.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"tshad" <tfs@dslextreme.com> wrote in message
news:%23MFpPT9EJHA.1272@TK2MSFTNGP02.phx.gbl...
> On Sql Server 2000,
>
> MSDN says to change the name of the instance you do:
>
> sp_dropserver old_servername\instancename
> GO
> sp_addserver new_servername\instancename, local
> GO
>
> I tried to do this as:
>
> sp_dropserver 'PTERADON\AW3000_INSTANCE'
> GO
> sp_addserver 'PTERADON\SQL2000', local
> GO
>
> and sysserver shows that the change was made.
>
> But the EM still shows the old server and the old name if I try to delete
> the Server Registration and add it back in under the new name.
>
> It still functions as the old name fine.
>
> How do I get it to work?
>
> Thanks,
>
> Tom
>


  Réponse avec citation
Vieux 11/09/2008, 17h47   #3
tshad
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Changing name instance

"Dan Guzman" <guzmanda@nospam-online.sbcglobal.net> wrote in message
news:u1WUev$EJHA.2292@TK2MSFTNGP04.phx.gbl...
>> I tried to do this as:
>>
>> sp_dropserver 'PTERADON\AW3000_INSTANCE'
>> GO
>> sp_addserver 'PTERADON\SQL2000', local
>> GO

>
> This changes the internal instalnce name (@@SERVERNAME) but not the actual
> (external) instance name. Unfortunately, the only way to change the
> instance name is to uninstall, re-install with the desired name and
> re-attach or restore the databases. After you restore/replace the master
> database, you will need to use sp_dropserver/sp_addserver.


I guess you are right.

The article: http://msdn.microsoft.com/en-us/libr...1(SQL.80).aspx

was talking about getting the sysservers table to match the new name (which
I assume would be the machine name and the instance would still have the
same name).

Thanks,

Tom
>
> --
> Hope this s.
>
> Dan Guzman
> SQL Server MVP
> http://weblogs.sqlteam.com/dang/
>
> "tshad" <tfs@dslextreme.com> wrote in message
> news:%23MFpPT9EJHA.1272@TK2MSFTNGP02.phx.gbl...
>> On Sql Server 2000,
>>
>> MSDN says to change the name of the instance you do:
>>
>> sp_dropserver old_servername\instancename
>> GO
>> sp_addserver new_servername\instancename, local
>> GO
>>
>> I tried to do this as:
>>
>> sp_dropserver 'PTERADON\AW3000_INSTANCE'
>> GO
>> sp_addserver 'PTERADON\SQL2000', local
>> GO
>>
>> and sysserver shows that the change was made.
>>
>> But the EM still shows the old server and the old name if I try to delete
>> the Server Registration and add it back in under the new name.
>>
>> It still functions as the old name fine.
>>
>> How do I get it to work?
>>
>> Thanks,
>>
>> Tom
>>

>



  Réponse avec citation
Vieux 12/09/2008, 02h10   #4
John Bell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Changing name instance


"tshad" <tfs@dslextreme.com> wrote in message
news:udnt9WCFJHA.616@TK2MSFTNGP06.phx.gbl...
> "Dan Guzman" <guzmanda@nospam-online.sbcglobal.net> wrote in message
> news:u1WUev$EJHA.2292@TK2MSFTNGP04.phx.gbl...
>>> I tried to do this as:
>>>
>>> sp_dropserver 'PTERADON\AW3000_INSTANCE'
>>> GO
>>> sp_addserver 'PTERADON\SQL2000', local
>>> GO

>>
>> This changes the internal instalnce name (@@SERVERNAME) but not the
>> actual (external) instance name. Unfortunately, the only way to change
>> the instance name is to uninstall, re-install with the desired name and
>> re-attach or restore the databases. After you restore/replace the master
>> database, you will need to use sp_dropserver/sp_addserver.

>
> I guess you are right.
>
> The article: http://msdn.microsoft.com/en-us/libr...1(SQL.80).aspx
>
> was talking about getting the sysservers table to match the new name
> (which I assume would be the machine name and the instance would still
> have the same name).
>
> Thanks,
>
> Tom
>>
>> --
>> Hope this s.
>>
>> Dan Guzman
>> SQL Server MVP
>> http://weblogs.sqlteam.com/dang/
>>
>> "tshad" <tfs@dslextreme.com> wrote in message
>> news:%23MFpPT9EJHA.1272@TK2MSFTNGP02.phx.gbl...
>>> On Sql Server 2000,
>>>
>>> MSDN says to change the name of the instance you do:
>>>
>>> sp_dropserver old_servername\instancename
>>> GO
>>> sp_addserver new_servername\instancename, local
>>> GO
>>>
>>> I tried to do this as:
>>>
>>> sp_dropserver 'PTERADON\AW3000_INSTANCE'
>>> GO
>>> sp_addserver 'PTERADON\SQL2000', local
>>> GO
>>>
>>> and sysserver shows that the change was made.
>>>
>>> But the EM still shows the old server and the old name if I try to
>>> delete the Server Registration and add it back in under the new name.
>>>
>>> It still functions as the old name fine.
>>>
>>> How do I get it to work?
>>>
>>> Thanks,
>>>
>>> Tom
>>>

Hi

I am not sure why you want to change the name, would using an alias be an
option?

Look up "How to: Configure Client Protocols (SQL Server Configuration
Manager)" in Books online for more.

John

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h09.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17889 seconds with 12 queries