Is there a way to specify the SQL command execution timeout for .CrossApplySqlServerQuery and .ToSqlCommand?
I'm trying to run a stored proc using .CrossApplySqlServerQuery and consume the result set that it returns and it fails me with a timeout.
As I found out by googling, default CommandTimeout for SqlConnection and OdbcConnection is 30 seconds which is not enough.
Is there a way to go around this? How do you solve this in your production environments, because I suspect not all queries/stored proc calls can be completed in under 30 seconds.
Is there a way to specify the SQL command execution timeout for .
CrossApplySqlServerQueryand.ToSqlCommand?I'm trying to run a stored proc using .
CrossApplySqlServerQueryand consume the result set that it returns and it fails me with a timeout.As I found out by googling, default
CommandTimeoutforSqlConnectionandOdbcConnectionis 30 seconds which is not enough.Is there a way to go around this? How do you solve this in your production environments, because I suspect not all queries/stored proc calls can be completed in under 30 seconds.