如何使用 Atom Editor 和 Data-Atom 设置查询超时?

How to set query timeout using Atom Editor & Data-Atom?

我开始使用 Atom with the package Data-Atom 进行 SQL 服务器连接。

但是我在执行查询时一直收到此错误:

Results: "Error (ETIMEOUT) - Timeout: Request failed to complete in 15000ms"

但是在 Visual Studio 上执行相同的查询没有错误,所以我认为服务器是好的。

有办法解决这个问题吗?

更新:连接选项未传递给 node-mssql,但在 this PR 合并后它们将会传递。

为了将超时设置为一小时,我将以下内容添加到 data-atom-connections.cson

{
    name: "sqlserver01"
    protocol: "sqlserver"
    user: "dzamo"
    password: "norton"
    server: "sqlserver01.localdomain"
    database: "AdventureWorks"

    options: "requestTimeout=36000000"
}

什么也没发生。我不得不在 ~/.atom/packages/data-atom/node_modules/tedious/lib/connection.js 中对其进行硬编码以使 long-running 查询正常工作。我会对此进行更多调查,并在 github.

上打开一个错误