ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 2nd, 2003, 11:22 AM
aliaga61 aliaga61 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 63 aliaga61 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 45 sec
Reputation Power: 5
problem with query inside asp code

i have a query that runs fine in oracle, but when i try and run it through my code i get an error :
Microsoft OLE DB Provider for ODBC Drivers error '80040e31'
[Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation

/test/WO_Metrics.asp, line 129

i know that it has to do with the way my query is coded, i think maybe with the nested query. because it worked fine before i put the nested query in. is there a special way to handle nested queries in aps?

here's the oracle code:

select distinct t.tsnumb, wo.woseqn, wob.wcbask, wob.wcstat, wob.wcdate from tsr t, workorder wo, wobaskdtl wob
where wo.woseqn in
(select distinct wob2.wcseqn from wobaskdtl wob2)
and t.tsstat='C'
and t.tsnumb=wo.wonumb
and t.tsnumb=wob.wcnumb
and wo.woseqn=wob.wcseqn
and wo.wostat='C'
and wo.wonumb='00050056'
order by t.tsnumb, wo.woseqn


asp code:

StrSQL = "Select Distinct T.TSNUMB, WO.WOSEQN, WOB.WCBASK, WOB.WCSTAT, WOB.WCDATE from TSR T, WorkOrder WO, WOBaskDtl WOB where WO.WOSEQN IN (Select distinct WOB2.WCSEQN from WOBaskDtl WOB2) and T.TSSTAT='C' and T.TSNUMB=WO.WONUMB and T.TSNUMB=WOB.WCNUMB and WO.WOSEQN=WOB.WCSEQN and WO.WOSTAT='C'and WO.WONUMB='00050056' order by T.TSNUMB, WO.WOSEQN"

Reply With Quote
  #2  
Old October 2nd, 2003, 03:24 PM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 6 m 22 sec
Reputation Power: 76
You didnn't say which version of oracle you are using, but http://www.cryer.co.uk/brian/oracle/ORA01013.htm has a couple possible things to do with that error. It sounds like that error could mean your request is timing out. Are you sure your connection to the database is actually working?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > problem with query inside asp code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway