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 SQL Injection in SQL Server ?

What is an Online Rebuilding of Indexes in SQL Server ?

Getting the Id of MS SQL Server Last Entered Record

What is a Covered Index in SQL Server ?

What is the XML Datatype in SQL Server ?