Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Error Problem - User requested cancel of current operation

Reply
Thread Tools

Error Problem - User requested cancel of current operation

 
 
Derk
Guest
Posts: n/a
 
      04-07-2004
I have an oracle database with about 4 million receipts, we are running some
asp pages to retireve/display data.

I am getting the above error when running the following

================================================== =============
<%
response.buffer=true

function DisplayGrand()

response.write "<h2>Selected Receipts - Totals</h2><br>"
response.write request.form("fromDate") & " To " & request.form("toDate")
& "<br>"
response.write "<table width='10%' border=1>"
response.write "<tr>"
response.write "<th width='5%'>Date</th>"
response.write "<th width='5%'>Total</th>"
response.write "<th width='5%'>Amount</th>"
response.write "</tr>"

oRRS.movefirst

sRowColor="red"
response.write "<tr bgcolor=" & sRowColor & ">"
response.write "<td>&nbsp</td>"
response.write "<td align=right>" & oRRS("TotCount") & "</td>"
response.write "<td align=right>" & formatcurrency(oRRS("TotAmount")) &
"</td>"
response.write "</tr>"
response.write "</table><br>"

end function

'================================================= ===================
' display screen and build the table
'================================================= ===================

Server.ScriptTimeOut=500

response.write "<html>"
response.write "<head>"
response.write "<title>"
response.write sTitle & " - Receipts Listing"
response.write "</title>"
response.write "<link rel='stylesheet' type='text/css' href='crea.css'>"
response.write "</head>"
response.write "<body bgproperties=fixed>"
response.write "<center>"
response.write "<h1>" & sTitle & "</h1>"

sConn="dsn=craudit2;uid=www_user;password=receipts "

set oDB = server.createobject("ADODB.Connection")
oDB.open sConn

sSQL = "Select sum(Amount) TotAmount, Count(*) TotCount from Receipts
where"
sSQL = sSQL & " Fund = 15"
sSQL = sSQL & " and ( ReceiptDate >= '01-APR-03' and ReceiptDate <=
'30-SEP-03')"

response.write sSQL

set oRRS = oDB.execute(sSQL) <- fails at this line

if oRRS.EOF then
response.write "<h2><font color=red>"
response.write "No Receipts selected<br><br>"
response.write "</h2>"
else
DisplayGrand
end if
response.write "</body>"
response.write "<html>"

%>

================================================== ======================

The number of receipts that fall into the above is about 50000

has anyone had this error and knows how to correct it?


Thanks

Derrick


 
Reply With Quote
 
 
 
 
Roland Hall
Guest
Posts: n/a
 
      04-07-2004

"Derk" <> wrote in message
news:...
: I have an oracle database with about 4 million receipts, we are running
some
: asp pages to retireve/display data.
:
: I am getting the above error when running the following
:
: ================================================== =============
: sConn="dsn=craudit2;uid=www_user;password=receipts "
:
: set oDB = server.createobject("ADODB.Connection")
: oDB.open sConn
:
: sSQL = "Select sum(Amount) TotAmount, Count(*) TotCount from Receipts
: where"
: sSQL = sSQL & " Fund = 15"
: sSQL = sSQL & " and ( ReceiptDate >= '01-APR-03' and ReceiptDate <=
: '30-SEP-03')"
:
: response.write sSQL
:
: set oRRS = oDB.execute(sSQL) <- fails at this line

This is related to Oracle. You get this error when a user requests it,
which would make it correct or when a timeout occurs. This means you should
look at the previous error for clues.

http://www.cryer.co.uk/brian/oracle/ORA01013.htm

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I/O operation, file operation behaviou raan C++ 2 08-16-2007 07:13 PM
SOLVED-ORA-01013: user requested cancel shall@uaex.edu ASP General 0 07-26-2007 02:50 PM
Does bit operation always work more efficiently than math operation? david ullua C Programming 13 03-01-2006 11:02 PM
HELP CANCEL CANCEL CANCEL Carmen Rosario Computer Support 7 04-06-2005 11:04 PM
The file 'bin\WebProj.dll' cannot be copied to the run directory. The requested operation cannot be performed on a file with a user-mapped section open. J Gao ASP .Net 0 07-28-2003 04:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57