How to extend the timeout of a SQL query

前端 未结 6 1838
没有蜡笔的小新
没有蜡笔的小新 2021-02-11 14:21

This is not a connection timeout as a connection to the database is made fine. The problem is that the stored procedure that I\'m calling takes longer than, say, 30 seconds and

6条回答
  •  北恋
    北恋 (楼主)
    2021-02-11 14:57

    you do this by setting the SqlCommand.CommandTimeout property

提交回复
热议问题