Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Oracle - VB5 - Why don't open a Recordset like a adOpenStatic with ADO?

Oracle - VB5 - Why don't open a Recordset like a adOpenStatic with ADO?

From: pert <pert_at_startel.com.ar>
Date: 19 May 1998 17:06:34 GMT
Message-ID: <01bd8348$5ed14960$6003010a@ALTOR-17.miniphone.com.ar>


Why don't open a Recordset like an adOpenStatic, adOpenKeyset or adOpenDynamic with ADO?

This is the code:

    conn = "DSN=trans;UID=trans;PWD=trans;"     

    Set cx = New ADODB.Connection
    cx.ConnectionString = conn     

    cx.Open     

    SQL = "select * from usuarios"     

    Set comando = New ADODB.Command

    comando.ActiveConnection = cx
    comando.CommandText = SQL
    comando.CommandType = adCmdText
    

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

    rs.Open , conn, adOpenStatic     

    Set rs = comando.Execute     

Thanks

Carlos Marcelo Santos
cms_at_sminter.com.ar Received on Tue May 19 1998 - 12:06:34 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US