[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 611
  • Last Modified:

Query Times out on aspx page

We have an aspx page that requests a date range and then runs a query that's specified in the select statement within the aspx page. When I run the query directly from sql server, the results are instantaneous. However, when I run the same date range from the aspx page, we get this error:

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

We've tried modifying the timeout settings in the machine.config file as well as in the web.config file, but it still times out after 25-30 seconds - even though the timeout was at one time set to 180 seconds.

What else can I check to get this query to run from the web page? It seems to do okay with a date range for less than one week, but much more than that is when it times out. We need to be able to run this query for a month and possibly even a year at a time.
<httpRuntime enable="true" executionTimeout = "360" />

Open in new window

0
Carla Romere
Asked:
Carla Romere
1 Solution
 
CB_ThirumalaiCommented:
Write a SP to run the query and call the SP from the front-end.  Just give it a try.
0
 
Carla RomereDirector of Information TechnologyAuthor Commented:
Well, as it turns out, it all had to do with the date format as it was entered into the text box. Now I'm working on putting validation in place for that field and have started a new question for that.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now