在哪里设置SqlTransaction.Commit的超时? [英] Where to set the timeout for a SqlTransaction.Commit?

查看:73
本文介绍了在哪里设置SqlTransaction.Commit的超时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,经常会出现"Timeout expired"消息。当我执行SqlTransaction.Commit时出现SQlException。

It happens quite often in my application that I get a "Timeout expired" SQlException when I do a SqlTransaction.Commit.

我在哪里可以调整Commit Timout值?

Grtnx,

Adri

推荐答案

在连接对象的连接字符串中。

In the connectionstring of your connection object.

访问www.connectionstring.net

Visit www.connectionstring.net


这篇关于在哪里设置SqlTransaction.Commit的超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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