Timeout expired error

M

meena_alag

Hi,

How do I avoid the following error:

"Timout expired. The timeout period elapsed prior to completion of the
operation or the server is not responding"

My sql query takes 1 min to fetch 1 lakh records. I have set the
CommandTimeOut in C# to 3 mins and still i am getting the above
error.

Please suggest a solution to this issue asap.

Thanks in advance,
Meena
 
W

W.G. Ryan eMVP

It could be the connection timeout that's giving you the problem- but it's a
readonly property unless you set it in the connection string.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top