Discussion Locked

ADO and ORACLE number fields

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I cannot retrieve ORACLE number fields with ADO.

ADOB.Connection.Execute("select *
from table)

This command will always return an empty recordset if the table has number fields. HELP please !

5 replies

by matdone

Hi I've had a few problems with the execute method with oracle. I have however had no problems so far with the open method. Here is some code I use.

strsql = "Select * from table"
Set connect1 = New ADODB.Connection
connect1.ConnectionString = "Your
Connect String"
connect1.Open
Set rstStage = New ADODB.Recordset
Set rstStage.ActiveConnection = connect1
rstStage.Open strsql

Regards,
Matt.
doneM@stgeorge.com.au

by vcsekhar007

Hey try the following :
------------------------------------
strsql = "Select * from table"
Set conn = New ADODB.Connection
conn.ConnectionString = "Your
Connect String"
conn.Open
Set rstStage = New ADODB.Recordset
Set rstStage.ActiveConnection = connect1
rstStage.Open strsql,conn

response.write("first data is "& rststage(0))

---------------Sekhar----------------

This discussion is closed to new replies.