473,394 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Prblem with Script Time out

164 100+
Hi

I have developed an workbench for my office. That workbench is for data entry.
So each and everytime a person submitting a record a trigger has ben called and their name, workbench name and the datetime.

So for each and everytime a record vl inserted.

So there are 3 to 4 workbenches. All of them follows the same procedure
What I want is I have to take a report that how much records a person doing for a day. The respective count shud be displayed like

Here I have given a Textbox for entering date and a button to Submit
So when I click the submit button the output should be in the format

User Name Workbench Date Total Records

I have tried this query
select convert(varchar(10),dt,105)'My Date' from empreport where convert(varchar(10),dt,105)='20-12-2007'
It works fine if I give the query directly in SQL Server

But If I use this query in ASP it showing Script Timeout error.

I have changed the timeout to the maximum value

rs.open "select userid,convert(varchar(10),dt,105) from empreport where convert(varchar(10),dt,105)='20-12-2007' order by userid",con
rs1.open "select workbench from empreport where convert(varchar(10),dt,105)='20-12-2007' and userid='" & user & "'",con
The above are queries I have tried. Instead giving textbox name I have entered the date directly....

Whats the problem here?

Am stuck with it.. Help me plz

Thanx

Shall I post the full code??
Jan 10 '08 #1
1 1239
jhardman
3,406 Expert 2GB
I don't see any problems in the code you posted. I usually find that I get script timeout errors not with things taking too long, but with infinite loops. Are there any loops on the script? You can check to see if this is the problem by changing it (temporarily, until you find a better fix) to a numbered loop (for x = 1 to 4 ... next) and it should work. Let me know if this helps.

Jared
Jan 11 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Dennis Roberts | last post by:
I have a script to parse a dns querylog and generate some statistics. For a 750MB file a perl script using the same methods (splits) can parse the file in 3 minutes. My python script takes 25...
6
by: Mike Daniel | last post by:
I am attempting to use document.write(pageVar) that displays a new html page within a pop-up window and the popup is failing. Also note that pageVar is a complete HTML page containing other java...
3
by: iam980 | last post by:
Hello All. We have tested following SQL script from query analyzer: -- Script begin DECLARE @I int; SET @I = 1; WHILE @I < 10000000 BEGIN SET @I = @I + 1; END -- Script end
3
by: rsteph | last post by:
I have a script that shows the time and date. It's been working on my site for quite a while now. Suddenly it stops showing up, after getting my drop down menu to work. If I put text between the...
9
by: Jerim79 | last post by:
Here it is: <?php if($_SERVER=='POST'){ $Number=$_POST; $Email=$_POST; $Number2=0; $error=0;
4
by: Manansi | last post by:
I do not want my page to refresh when selecting a drop down menu choice. It works fine in FireFox but in IE the page refreshes each time. Is there any known issues with this? This is using Ajax...
2
by: Jay | last post by:
I have a web app running on the windows CE device. In one of the asp.net pages - it has javascript code. That seems to have a memory leak. When I run the web app - in about one hour, the app hangs....
15
by: Lawrence Krubner | last post by:
Does anything about this script look expensive, in terms of resources or execution time? This script dies after processing about 20 or 25 numbers, yet it leaves no errors in the error logs. This is...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.