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 > Delphi, C etc > e_fail error when open a recordset

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-27-03, 12:58
peuj peuj is offline
Registered User
 
Join Date: Aug 2003
Posts: 7
e_fail error when open a recordset

Hi,

this my code :

************************************************** **********
Public Function LoadTableContent(strTable As String, cnx As ADODB.Connection) As ADODB.Recordset

Dim rs As ADODB.Recordset
Dim strSQL As String

On Error GoTo LoadTableContent_Err

strSQL = "select * from " & strTable

Set rs = New ADODB.Recordset
rs.CursorLocation = adUseClient
rs.CursorType = adOpenStatic
rs.LockType = adLockReadOnly

rs.Open strSQL, cnx, , , adCmdText

LoadTableContent_End:
On Error GoTo 0
Set LoadTableContent = rs
Exit Function
LoadTableContent_Err:
Set rs = Nothing
Resume LoadTableContent_End
End Function
************************************************** **********

A have an E_FAIL error with "rs.Open strSQL, cnx, , , adCmdText".
I use ODBC driver 8.1.7.

When i connect on a DB oracle 8.1.7 i don't have the problem but if i connect on a DB oracle 9.2 (which is exactly the same) i have the E_FAIL error.

there are 3 columns in my table string | string | OLE Object

If somebody know the solution ??

thanx in advance
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On