Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble with @@servername variable
Message
De
18/12/2000 08:42:13
 
 
À
16/12/2000 10:10:33
Fausto Garcia
Independent Developer
Lima, Pérou
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Divers
Thread ID:
00454368
Message ID:
00454637
Vues:
27
Hypens are not valid for identifiers within SQL Server.

I think the error message is telling you that you're going to have to rename the local server to get rid of the hypen and then use sp_setnetname to create a mapping between the new SQL Server name and the actually server's NETBIOS name.

Try this:

sp_dropserver SPE002001-001
sp_addserver SPE002001_001, 'LOCAL'
sp_setnetname SPE002001_001, 'SPE002001-001'

I've not tried this so all the obvious disclaimers are in place <s>

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform