如何从SQL连接字符串设置查询超时 [英] how to set the query timeout from SQL connection string
本文介绍了如何从SQL连接字符串设置查询超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从连接字符串设置querytimeout。
不是连接超时,可以吗?
I want to set the querytimeout from the connection string. not the connection timeout, is it possible?
推荐答案
否。
编辑,2013年5月
根据评论的要求:
- 用于执行命令的SQLCommand.CommandTimeout
- 没有匹配的SQLConnection属性(问题是 not SqlConnection.ConnectionTimeout属性
- SQLCommand.CommandTimeout for command execution
- There is no matching SQLConnection property (the questions says not the SqlConnection.ConnectionTimeout property
关于 SQL Server(DBA.SE)中的命令和执行超时。
还有更多类似的东西:未提交的交易会发生什么何时关闭连接?
这篇关于如何从SQL连接字符串设置查询超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文