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

How is Auditing Different From Change Data Capture in SQL Server?

Making a MS SQL Offline Database Online

What is TABLESAMPLE in SQL Server ?

Changing Column Name of MS SQL Table with Query

What is NOLOCK Hint in SQL Server ?