SSIS导入/导出向导ODBC/Snowflake超时

huangapple go评论77阅读模式
英文:

SSIS Import/Export Wizard ODBC/Snowflake timeout

问题

我们正在使用SQL Server 2014(运行12.6444最新的Service Pack/CU),并尝试使用SSIS导入/导出向导从Snowflake导入数据,使用ODBC连接,使用Snowflake的最新ODBC驱动程序。

通常情况下,它可以成功连接并导入小型查询的数据。我们正在运行一个需要几分钟才能完成的查询,但在30秒后一直超时,随后出现以下错误:

  • 预执行(错误)
  • 消息
  • 错误0xc0047062:数据流任务1:System.Data.Odbc.OdbcException(0x80131937):错误[HY000] [Snowflake][Snowflake](15)
    查询已超时。用户指定的超时时间(秒)=30,已经经过了45秒

我们已经在数据源窗口中设置了超时属性,但这没有改变任何内容:

Dsn=snowflake;query_timeout=0;commandtimeout=0;login_timeout=0;statement_timeout_in_seconds=4000;timeout=0

还有其他需要考虑的事项吗?

英文:

We are using SQL Server 2014 (running the 12.6444 latest Service Pack/CU), and trying to import data using the SSIS import/export wizard from Snowflake, using an ODBC connection, using the latest ODBC drivers from snowflake.

It generally successfuly connects and imports data on small(er) queries. We're running a query that takes a few minutes to run, but keeps timing out after 30 seconds, followed by this error:

- Pre-execute (Error)
Messages
Error 0xc0047062: Data Flow Task 1: System.Data.Odbc.OdbcException (0x80131937): ERROR [HY000] [Snowflake][Snowflake] (15) 
  Query has timed out. User specified timeout in seconds=30, Elapsed=45

We've already established timeout properties in the data source windows, but this didn't change anything:

Dsn=snowflake;query_timeout=0;commandtimeout=0;login_timeout=0;statement_timeout_in_seconds=4000;timeout=0

SSIS导入/导出向导ODBC/Snowflake超时

Anything else we should consider?

答案1

得分: 0

我解决了这个问题。

最后,我保存了由导入/导出向导生成的DTSX包,并在Visual Studio中打开它 - 在浏览了一堆设置后,我找到了一个名为“CommandTimeout”的选项,我手动将其设置为“0”。
(在SQL导入/导出向导期间无法配置此选项)。

这样做有效,并成功导入了数据。

SSIS导入/导出向导ODBC/Snowflake超时

英文:

I got this resolved.

I ended up saving the DTSX package generated by the import/export wizard, and opening it up Visual Studio – And after navigating through a bunch of settings, there is a CommandTimeout option which I manually set to “0”.
(This option isn’t configurable during the SQL import/export wizard).

This worked and the data imported successfully.

SSIS导入/导出向导ODBC/Snowflake超时

huangapple
  • 本文由 发表于 2023年7月14日 01:11:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/76681826.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定