【问题标题】:Sql Server: Timeout expired, alternative solutionSql Server: Timeout expired,替代解决方案
【发布时间】:2016-05-10 09:09:57
【问题描述】:

我正在使用能够从 sql 服务器创建备份的应用程序,但它的大小会导致错误:

Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
The backup or restore was aborted.

我想知道是否能够在不更改应用程序的情况下从 Management Studio 更改 time out 时间。

如果除了将连接字符串更改为数据库之外别无他法,那么在字符串中添加一个简单的;Connection Timeout=30 是否可以解决这个问题?该应用程序是用 C# 编写的。

【问题讨论】:

    标签: sql-server timeout


    【解决方案1】:

    我想知道是否能够在不更改应用程序的情况下从 Management Studio 更改超时时间。

    • 是的,您可以在Management Studio 中更改超时。看到这个article

    在字符串中添加一个简单的 ;Connection Timeout=30 可以解决这个问题吗?

    • 不,这是连接到 SQL Server 时的超时,而不是查询执行超时。

    【讨论】:

    • 感谢您的回复。执行超时已设置为 0。这不是超时。它不应该导致错误。
    猜你喜欢
    • 2019-11-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-13
    • 2016-10-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多