如何增加执行超时 [英] How to increase Execution Timeout

查看:71
本文介绍了如何增加执行超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中Excel导入在导入执行TimeOut之前需要更多时间。所以我想增加执行超时

In my project Excel Importing takes more time before Importing the Execution TimeOut.So I want to increase the Execution Timeout

推荐答案

如果要更改超时单个命令可以完成多长时间,你需要更改命令timeout..like this ..



If you want to change the timeout for how long a single command can take to complete , you need to change the command timeout..like this..

dbCommand.CommandTimeout = somevalue





http://msdn.microsoft.com/en-CA/library/system.data.sqlclient.sqlcommand.commandtimeout.aspx [ ^ ]


这篇关于如何增加执行超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆