In SQL Server, there is NO concept of Global variables. In the initial versions of SQL Server, the System defined functions which begin with ‘@@’ are referred as Global variables. But their actual behavior is not same as variables in SQL Server.

Read More