@@SERVICENAME is the Windows service used to execute and maintain the current instance of SQL Server. : SERVICENAME « System Settings « SQL Server / T-SQL Tutorial






3>
4>
5> select @@SERVICENAME;
6> GO

--------------------------------------------------------------------------------------------------------------------------------
SQLEXPRESS

(1 rows affected)








26.31.SERVICENAME
26.31.1.@@SERVICENAME is the Windows service used to execute and maintain the current instance of SQL Server.