Re: Need a recordcount in ADO recordset



TechBoy wrote:
Hello.
I have the following code that connects to an Oracle database and
pulls records from 3 tables via complex SQL code. These tables are
very large and only a portion of rows from each are pulled for the
result.

One of the system requirements is that I need to get a recordcount of
rows in this recordset from the SQL call & output that value to a text
log file later.

Do you need to do anything with the actual data? or is your goal simply
to get a count? if so,

strSQL = "Select count(*) FROM " & _
"(<SQL Code that works from three very large tables>) as data"

The code runs and returns approx 570k rows when I run the SQL code in
an external Oracle utility. In my code though, just doing a
"rs.recordcount" in the debug window yields "-1", not the real row
quantity.

http://www.aspfaq.com/show.asp?id=2193



--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • Re: Word macro to connect to Oracle database
    ... > Can anyone help me creating a macro to access an Oracle database? ... > objective is to push a button on a word document and validate some input ... you say whether you've any programming experience at all using ADO. ... should ask in the data.ado newsgroup. ...
    (microsoft.public.word.docmanagement)
  • Re: 3907
    ... This newsgroup is intended for questions about VB6 and earlier. ... Doug Steele, Microsoft Access MVP ... oracle database. ... on conenction object. ...
    (microsoft.public.vb.database.ado)
  • Re: Merge documents into one file
    ... > I have a word template that merges with our Oracle database. ... > I have 20 word documents opening up.I want to merge the 20 documents into ... reply in the newsgroup and not by e-mail :-) ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Anyone familiar with a Compaq Proliant 1600?
    ... newsgroup or something... ... I feel your pain - I have to support an Oracle database that's about 3 ...
    (microsoft.public.windows.server.general)