| 
   
 
 | 
| Determining Server Name using T-SQL
 
 SELECTCONVERT(sysname, SERVERPROPERTY(N'servername')) GO SELECT@@SERVERNAME 
 When they are run on the default instance they return just the server name, but when run over a named instance they return the server name in the following format: servername/instancename. 
 
References. 
 | 
| 
 
 .Send mail to 
webmaster@sqlcoffee.com with 
questions or comments about this web site. |