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

Click here to load this message in the networking platform