Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble with @@servername variable
Message
De
18/12/2000 15:25:01
Fausto Garcia
Independent Developer
Lima, Pérou
 
 
À
18/12/2000 08:42:13
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Divers
Thread ID:
00454368
Message ID:
00454802
Vues:
24
Michael,

Thanks for helping. In fact, on saturday when we had the problem we solved it the same way you expose here, and it worked fine.

Fausto

>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
Solo se que nada se

Fausto J. Garcia Pino - MCSD.NET
.NET, Oracle, Tronador & Fondismo!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform