我在选择 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, Action
1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action
1 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/