Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help: @@SERVERNAME returns gibberish

Status
Not open for further replies.
To get the right Server Name
Code:
declare @str1 varbinary(80)
SET @str1 = 0x417072696C466F6F6C73
PRINT convert(varchar(80), @str1)

;-)
(I like that one)


Borislav Borissov
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top