Problems getting INTEGER columns from ORACLE via ADO

Problems getting INTEGER columns from ORACLE via ADO

Post by Denis Dittma » Tue, 01 Feb 2000 04:00:00



Hi,

I've got a problem using ADO to retrieve data from an ORACLE 8.15 Database
Server.
When I run a SELECT (via command - object) and initialize the target
recordset-object
like this:

        cmdSQL.CommandText = "SELECT * FROM SomeTable";
        Set rsRec = cmdSQL.Execute

the rsRec.Fields("...") - property gives only '0' for all INTEGER columns.
Other columns with
different datatypes (Varchar, Float...) are retrieved correctly.

When I use the same procedure to connect to an ACCESS Database everything
works fine.
I also get correct results using DAO connection to the ORACLE Server.

Does somebody know what is going wrong there ? Any suggestions to solve or
work around this
problem (bug) ???

So Please let me know !

Thanx 'n' Bye
Denis

 
 
 

Problems getting INTEGER columns from ORACLE via ADO

Post by michaelgood.. » Tue, 01 Feb 2000 04:00:00




Quote:> Hi,

> I've got a problem using ADO to retrieve data from an ORACLE 8.15
Database
> Server.
> When I run a SELECT (via command - object) and initialize the target
> recordset-object
> like this:

>         cmdSQL.CommandText = "SELECT * FROM SomeTable";
>         Set rsRec = cmdSQL.Execute

> the rsRec.Fields("...") - property gives only '0' for all INTEGER
columns.
> Other columns with
> different datatypes (Varchar, Float...) are retrieved correctly.

> When I use the same procedure to connect to an ACCESS Database
everything
> works fine.
> I also get correct results using DAO connection to the ORACLE Server.

> Does somebody know what is going wrong there ? Any suggestions to
solve or
> work around this
> problem (bug) ???

We also use an ADO connection to Oracle 8.  If I want the value of a
field, I use its literal name:

rsName("fieldname")

which may be a work round for you.

Although I have to say that

rsName.Fields(i).Value

works for me too.  You may have to delve into ADO - ODBC/OLE setup, in
which case, good luck to you.

--

Mike Gooding
------------

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Problems getting INTEGER columns from ORACLE via ADO

Post by Michael D. Lon » Tue, 01 Feb 2000 04:00:00


You are using the OLE DB provider, right? Try the ODBC driver.

Mike


>Hi,

>I've got a problem using ADO to retrieve data from an ORACLE 8.15 Database
>Server.
>When I run a SELECT (via command - object) and initialize the target
>recordset-object
>like this:

>        cmdSQL.CommandText = "SELECT * FROM SomeTable";
>        Set rsRec = cmdSQL.Execute

>the rsRec.Fields("...") - property gives only '0' for all INTEGER columns.
>Other columns with
>different datatypes (Varchar, Float...) are retrieved correctly.

 
 
 

1. Problems getting INTEGER columns from ORACLE via ADO

Hi,

I've got a problem using ADO to retrieve data from an ORACLE 8.15 Database
Server.
When I run a SELECT (via command - object) and initialize the target
recordset-object
like this:

        cmdSQL.CommandText = "SELECT * FROM SomeTable";
        Set rsRec = cmdSQL.Execute

the rsRec.Fields("...") - property gives only '0' for all INTEGER columns.
Other columns with
different datatypes (Varchar, Float...) are retrieved correctly.

When I use the same procedure to connect to an ACCESS Database everything
works fine.
I also get correct results using DAO connection to the ORACLE Server.

Does somebody know what is going wrong there ? Any suggestions to solve or
work around this
problem (bug) ???

So Please let me know !

Thanx 'n' Bye
Denis

2. Automation Error after installing Office 2K

3. Problems getting INTEGER values from ORACLE via ADO ???

4. Auditing events in ASE 11.9.2

5. Problem getting INTEGER values from ORACLE via DAO ???

6. adModeShareDenyNone

7. Problems gett INTERGER columns from ORACLE via ADO

8. Do I have to install some patches before installing the Oracle8i in Solaris7 x86?

9. Getting rid of the IDENTITY property on a column withou getting rid of the column

10. Problems getting integers and fractions from a number

11. getting column data type via ODBC from perl

12. getting column names from MSAccess via SQL

13. Getting back identity after an insert via ADO?