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

List of Table Columns Used in Any View in MS SQL

Making a MS SQL Database Offline

What is an OUTPUT Clause Inside SQL Server ?

What is the Difference Between CHAR and VARCHAR Datatypes in SQL ...

What is the Difference Between Update Lock and Exclusive Lock in ...