find current server name for SSMS code example Example: find current server name for SSMS SELECT @@SERVERNAME