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