Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当两个连接都打开时,两个连接可以使用 SPID 吗?
如果连接返回到连接池,它会保留 SPID 吗?
不,每个打开的连接都有自己的 SPID。
是的,只要连接打开,它就会与一个 SPID 相关联。
您可以通过查询自行测试sys.sysprocesses。重新启动客户端计算机应清除其连接池。
sys.sysprocesses