Click here to Skip to main content
15,846,038 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using sql express 2008 R2.My Database size is 3.89 GB and i have upgrade it to support till 10 GB size.

Now I am trying select query for Table

It's Execute sucessfully

But when I try to insert query

Its Gives Me Exception

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

I am not getting what is issue.

Please Help Me

Thanks In Advance
Yuri Vital 7-Oct-11 3:04am    
what is your query ?
Al Moje 7-Oct-11 3:23am    
Could you post code on inserting query so that we could canalized and see what’s wrong…

1 solution

So you are trying to access a database which is having large volume of data. So the query execution time will be more. If you have looked at ADO.NET in details this mainly depends on two things.

First one is the connection timeout for database connection. Basically time elapse to resolve the connection. ConnectionTimeOut property will solve that issue.

The second one is the timeout for data access, or read. CommandTimeOut property of the Command object will resolve the issue.

Please check spelling for each property names. I cannot remember the exact spelling on them.
Share this answer
Dalek Dave 7-Oct-11 6:06am    
Good Call.
CodingLover 9-Oct-11 23:37pm    
You are welcome. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900