4

I am a big fan of SqlCommandProvider type provider but I am constantly hitting timeout problems with a bit more resource demanding queries. I set connection timeout in connection string to some bigger value but this still doesn't help me with my queries timing out since that is only for the connection part not for command timeout.

One solution would be to use AsSqlCommand set CommandTimeout and execute reader but that somewhat kills the point of using the SqlCommandProvider.

Any idea how can I set the timeout in constructor / execute?

1 Answer 1

4

Timeout support was implemented recently, see https://github.com/fsprojects/FSharp.Data.SqlClient/blob/master/src/SqlClient.Tests/TypeProviderTest.fs#L119

Sign up to request clarification or add additional context in comments.

1 Comment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.