@@SERVICENAME (TSQL Function)
Returns the service name of the RSQL instance on which this session is running.
It is the last part of the server parameter SERVER_SERVERNAME
, which is after the /
separator.
If no /
separator is found in the server name, the default service name RSQLServer
is returned.
See also the function @@SERVERNAME
.
Syntax
@@SERVICENAME
Return Types
Returns varchar
.
Examples
PRINT @@SERVERNAME;
PRINT @@SERVICENAME;
The result may be different on your installation:
jupiter/RSQLServer
RSQLServer