Showing Server Active Server Name in MS SQL

The following query should be run to show the active Server name in MS SQL Server.

SELECT @@SERVERNAME AS ServerName


You May Interest

Differences Between Stored Procedure and Function in MS SQL

Changing MS SQL Database Name with Query

Generating Random Letters in MS SQL

What is the Difference Between VARCHAR and VARCHAR(MAX) Datatypes ...

What is the Merge Statement in SQL Server ?