开发者

SPID of a SqlConnection (SQL-Server) in ADO.NET

开发者 https://www.devze.com 2023-01-10 23:39 出处:网络
Can I get a SPID from a SqlConnection Object (SQL-Server Database) in ADO.NET? Is the SPID always the 开发者_StackOverflow社区same for a connection object during its lifetime ?select @@SPID gives you

Can I get a SPID from a SqlConnection Object (SQL-Server Database) in ADO.NET?

Is the SPID always the 开发者_StackOverflow社区same for a connection object during its lifetime ?


select @@SPID gives you the spid.

It should be constant, but may be recycled if you have connection pooling.

0

精彩评论

暂无评论...
验证码 换一张
取 消