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

What is an Index in SQL Server ?

When Will You Use SQLDiag Tool ?

What are Indexed Views inside SQL Server ?

What is the Merge Statement in SQL Server ?

What are the System Data Collection Sets Predefined Inside SQL Se ...