troubleshooting Question

Timeout Expired when trying to bind gridview with sql datasource

Avatar of kevlause
kevlause asked on
Microsoft SQL ServerASP.NET
9 Comments1 Solution3794 ViewsLast Modified:
I've got a grid view that is bound to a sql datasource that uses a connection string set in a web config file.

When I run a large sql query I get the time out error. I've set the timeout in the connection string (I think) but I'm still getting this error.

System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

Here is the connection string I'm using
connectionString="Data Source=XXX;Initial Catalog=XXX;Integrated Security=True;timeout=9999999"

What else do I need to do here? Is there a time out I can set on the server it's self?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros