Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

MySqlHelper CommandTimeout (no replies)

$
0
0
I'm using methods belonging to MySqlHelper for all of my database access in a web project, and I have a particularly long running SELECT query which times out every time.
Having scoured the internets, I have become convinced that increasing the CommandTimeout property (default 30secs?) of an underlying MySqlCommand would allow the query to complete its execution. However I can't find a way to set this on the MySqlHelper object directly.

I would like to be able to set it on the MySqlHelper directly, as that saves me from creating my own MySqlCommand, which I have so far been able to avoid. Is there a way to do that which I have missed?

Alternatively, is there a way of setting the CommandTimeout for the whole of my web project, or even on the mysql database?


Mike

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>