ms sql server server name code example Example: server name sql server SELECT @@SERVERNAME AS 'Server Name'