Finding Session Id in MS SQL User's Current Process

In MS SQL, the following query is run to find the Session Id of the logged in user in the current process.

SELECT @@SPID AS 'SessionId'


You May Interest

Making a MS SQL Database Offline

What are the Different Recovery Models Inside SQL Server ?

What is SQL Injection in SQL Server ?

What is SQL Server Agent ?

What is the Difference Between VARCHAR and NVARCHAR in SQL Server ...