From 46f0638283bebbca1dfd32167b7058207328ef77 Mon Sep 17 00:00:00 2001 From: Benjamin Russell Date: Thu, 6 Oct 2016 10:26:34 -0700 Subject: [PATCH] Adding unlimited timeout for query execution (#76) Adding explicitly setting the timeout for command execution to unlimited. We can change this to be user configurable at a later time --- src/Microsoft.SqlTools.ServiceLayer/QueryExecution/Batch.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Microsoft.SqlTools.ServiceLayer/QueryExecution/Batch.cs b/src/Microsoft.SqlTools.ServiceLayer/QueryExecution/Batch.cs index 17065991..51a35a7d 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/QueryExecution/Batch.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/QueryExecution/Batch.cs @@ -158,6 +158,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution { command.CommandText = BatchText; command.CommandType = CommandType.Text; + command.CommandTimeout = 0; // Execute the command to get back a reader using (DbDataReader reader = await command.ExecuteReaderAsync(cancellationToken))