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

Finding Server Default Language in MS SQL

What is SQL Profiler ?

Using MS SQL If Else

What are the Various Limitations of the Views in SQL Server ?

What is Utility Control Point (UCP) in SQL Server ?