How does ADO.NET' s SqlCommand.CommandTimeout work?

前端 未结 3 1637
甜味超标
甜味超标 2021-01-22 10:47

Consider a stored procedure that updates some rows about in 60 seconds without using a transaction. We set ADO.NET\'s SqlCommand.Timeout to 30 seconds.

SqlComma         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-22 11:14

    If you haven't closed your SQL connection yet, it should continue to run if it started proc execution already. (You should be able to test & verify this relatively easily.)

提交回复
热议问题