How can I read the value of a system environment variable in a T-SQL script?
This is to run on SQL Server 2005.
Hey, if you want to get the server name, just call SELECT @@SERVERNAME
SELECT @@SERVERNAME