Viewing post 1 (of 1 total)
@@ServiceName would be ok if there are named instances.
If none is available then select @@servicename results MSSQLSERVER.
So if you are interested in only the instance name, without the servername,
and...
June 28, 2011 at 3:57 am
#1345038