I have recently started using LinqPad, and bought the Autocomplete option and am really loving it. This is an excellent product!
I wanted to ask if there is a way for me to control the command timeout that used when querying a SQL Server database in LinqPAD (I am using c# statements)? I can't see where we have access to the actual connection string, and I have some large queries for reporting that are timing out. It appears that the timeout is hard-coded at 30 seconds.
Thanks in advance for any help!
I have run queries that have taken minutes and never had a command time out. That said, here's how you change it...
All of the work you perform inside a UserQuery
. The CommandTimeout
is a property of that.
this.CommandTimeout = 60;
Have a look at all the properties under this
. It gives you a nice insight into some of the things you can do.