Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Register
Login
SQL Server Transact Basic to Expert - Get Current SQL Server Connections Session ID
Karthikeyan Anbarasan
Jun 20, 2011
4.3
k
0
0
Blogs
WhatsApp
SQL Server Transact Basic to Expert - Get Current SQL Server Connections Session ID
This blog shows how to get the current Connections session ID in SQL Server
Example:
SELECT @@SPID SPID
The expected result would vary based on the execution.
SQL Server Transact Basic to Expert - Get Current SQL Server Connections Session ID
Next Recommended Reading
SQL Server Transact Basic to Expert - Get the Language used in Current Session in SQL