have a look at Oracle Objects for OLE: this goves the most comprehensive access to Oracle datatypes from a VB client, and the concepts are similar to Jet's way of handling data.
Hi,
I have a problem accessing CLOBs.
Error message is a data type problem.
How can I select CLOBs through VB.
(Where can I find help about Oracle Object for OLE mentionned by muesli)
Thanks
The example uses a sql server database, but except for the connection string it should be the same with Oracle. Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
I get an error message when I run the select statement : "Data type is not supported"
Here is my code :
Dim rs As ADODB.Recordset
Dim cmd As ADODB.Command
Set rs = New ADODB.Recordset
Set cmd = New ADODB.Command
cmd.ActiveConnection = cnn1
cmd.CommandText = strSQL
Set rs = New ADODB.Recordset
rs.Open cmd 'error occurs here !!
Set RunSQLReturnRS1 = rs
Set cmd = Nothing
Set rs = Nothing
strSQL is : "select * from table1 where field1='hfkhg'"
If i run the same statement without the CLOB fields it is working fine.
Try and keep things simple for starters:
-----------------------------------------------
Set cnn1 = New ADODB.Connection
strConnectionString = "Provider=MSDAORA.1;User ID=" & strLogin & "; password = " & Password & ";Data Source=test;Persist Security Info=False"
cnn1.Open strConnectionString
Set Rst = new ADODB.Recordset
Rst.open "SELECT MyBlobField FROM table1 WHERE field1='hfkhg'",conn
------------------------------------------------
Does that work? Does it work if you select another field?
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
Thanks again for your help, but it is still not working !
I changed the provider from MSDAORA to {Microsoft ODBC for Oracle}, the CursorLocation to adUseClient ... I tried severa combination of cursor & lock types I can't see what I am doing wrong ...
This time the error message is "unspecified error" - source provider.
(By the way I am using Oracle 8i with VB6.
The Oracle datatype is CLOB.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.