SQL Server如何查看当前数据库连接的SPID

使用SQL Server系统变量@@SPID即可:

SELECT @@SPID
原文地址:https://www.cnblogs.com/OpenCoder/p/10573937.html