If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Oracle + Asp: End Of File through ASP, but get rows in TOAD

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-21-06, 15:51
igordonin igordonin is offline
Registered User
 
Join Date: Jul 2006
Posts: 56
Oracle + Asp: End Of File through ASP, but get rows in TOAD

Hi y'all

Some help here please

'Define SQL
SQL = "select "
'Table Orders
SQL = SQL & "schema1.orders.order_sid, "
SQL = SQL & "schema1.orders.order_date "
'From Table Orders
SQL = SQL & "from "
SQL = SQL & "schema1.orders "
'Where --> Only not Ready-to-Go Orders ...
SQL = SQL & "where "
SQL = SQL & "readytogo = 0 "
'And --> From Session User
SQL = SQL & "and "
SQL = SQL & "user_sid = '" & Session("user_sid") & "' "
'And --> From the Selected Company
SQL = SQL & "and "
SQL = SQL & "company_sid = '" & Session("company_sid") & "' "

Now, the Columns here are
order_sid - Number(10)
order_date - Date
readytogo - Number(1) with Constraint for 0 or 1 only (False ou True)
user_sid - Char(12)
company_sid - Char(14)

Then, the SQL String results in:
...
where
readytogo = 0
and
user_sid = '773433'
and
company_sid = '153'

Here's the thing: When I run this code in ASP, I get EOF and BOF true. That means there are no matches. But yes, there are. When I run it in TOAD, I get 1 row.

To complete the info, the user in toad is toplevel, and the site user only has grants for SELECT, INSERT, UPDATE and DELETE. Although I do not think that's the problem, since I also tried it on the site with the toplevel user...

Furthermore, the Provider is MSDAORA, CursorLocation = 3, and Oracle version is some 9i, not too sure.

Did this ever happen to anybody? Does anyone have any clues as to WHY this is happening?

Please, any help would be extremely appreciated.
(and if you clueless like me, thanx for reading anyways)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On