ssis - 有没有办法在不增加 DTU 的情况下增加 SQL Azure 的远程查询超时?

标签 ssis azure-sql-database timeoutexception

我在选择 SSIS 包中的行时超时...(下面是完整的错误详细信息)。

  • 查询在 SSMS 中运行了 3 分钟。
  • 我的 SQL Azure Server 具有 Standard1 规模 (20DTU)。
  • 耗时始终为 30 秒。
  • 我确实修复了“连接超时”并将值设置为 300(5 分钟)
  • 我跑不动

    EXEC sp_configure '远程查询超时', 300 ;

    因为它是 SQL Azure。

除了增加DTU之外,有没有办法将远程连接扩展到Azure服务器? 我的唯一目的是偶尔在 SSIS 上运行一些大查询......

Error: System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.PreExecute() at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPreExecute(IDTSManagedComponentWrapper100 wrapper)

最佳答案

对于 I/O 密集型工作负载,您应该使用高级层。在运行这些工作负载之前向上扩展,并在 SSIS 包完成后缩回到标准。请在运行 SSIS 程序包时检查 DTU 消耗,您可能会发现工作负载达到了层限制,并且发生了节流。

请同时将异步处理设置为 True。更多信息点击here .将连接超时设置为零。

希望这对您有所帮助。

关于ssis - 有没有办法在不增加 DTU 的情况下增加 SQL Azure 的远程查询超时?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46718770/

相关文章:

sql-server - SQL Server 错误错误代码 0xC0208449

sql - 将包部署到 SQL Server 时出现 SSIS 部署错误

azure-sql-database - 在 Azure SQL DB 中启用和配置 FILESTREAM

asp.net - 动态数据掩码停止工作

Azure函数无法连接到Azure SQL数据库

sql-server - 为什么自定义 SSIS 日志提供程序不会显示在提供程序下拉列表中?

ssis - 错误 : An error occurred with the following error message: "The given path' s format is not supported.“

java - Selenium WebDriver 基本 java 项目出错

c# - Redis ServiceStack 超时异常 C# Asp.Net

ruby-on-rails - 使用 postgresql 和 ruby​​ on rails 优化时间序列数据检索的数据库查询