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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With