Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with @@servername variable
Message
From
18/12/2000 15:25:01
Fausto Garcia
Independent Developer
Lima, Peru
 
 
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Miscellaneous
Thread ID:
00454368
Message ID:
00454802
Views:
23
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform