January 13, 2012 at 3:31 am
is thereany difference between @@servicename and @@servername?
January 13, 2012 at 3:36 am
I believe these variables will be different if you have a named, not a default, instance.
I may be wrong.
EDIT: No, I was right.
select @@servername returns... <SERVER>\<INSTANCE>
select @@servicename returns... <INSTANCE>
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
January 13, 2012 at 3:36 am
@@servicename-Returns the name of the registry key under which SQL Server is running.
@@servername-Returns the name of the local server that is running SQL Server.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply