Search found 21 matches: adopenforwardonly

Return to advanced search

Re: Insertar registros en un Dbf desde tabla MSAccess

... crear el OBJETO"+ oError:Description ) RETURN .F. END oRSet:CursorLocation:=adUseClient;oRSet:LockType:=adLockReadOnly;oRSet:CursorType:=adOpenForwardOnly;oRSet:ActiveConnection( oConnection ) sSQLQuery := "SELECT * FROM CONSULMARKET" TRY oRSet:Open( sSQLQuery, oConnection ) ...
by RBLANCO
Tue Apr 16, 2019 11:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Insertar registros en un Dbf desde tabla MSAccess
Replies: 3
Views: 762

Re: Error from ADO

... uses it. 5. adLockBatchOptimistic: Useful. But for more advanced users. 4. adLockOptimistic: This is the only choice we have CursorType: 0. adOpenForwardOnly : Works only with adUseServer and in anycase this is not what we want 1. adOpenKeyset : Whether we like or not this work only with ...
by Horizon
Sat Aug 18, 2018 3:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error from ADO
Replies: 14
Views: 3501

Re: Error from ADO

... uses it. 5. adLockBatchOptimistic: Useful. But for more advanced users. 4. adLockOptimistic: This is the only choice we have CursorType: 0. adOpenForwardOnly : Works only with adUseServer and in anycase this is not what we want 1. adOpenKeyset : Whether we like or not this work only with ...
by nageswaragunupudi
Fri Aug 11, 2017 3:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error from ADO
Replies: 14
Views: 3501

Re: ADO RecordSet Fetch() ?

... want to mimic the ODBC fetch() record by record and then copy into your own memory, I suggest the following way: Open serverside recordset with adOpenForwardOnly and adLockReadOnly. Keep reading the recordset as and when you need and copy to your memory ( array or whatever you were using with ...
by nageswaragunupudi
Sun Jul 28, 2013 8:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO RecordSet Fetch() ?
Replies: 21
Views: 6501

ADO RecordSet: What is the best CursorType to use?

... recordset. Back to CursorType: When we look around we see many postings setting custor type either to adOpenKeySet or adOpenDynamic but never adOpenForwardOnly or adOpenStatic. adOpenKeySet ( 1 ) keyset cursor. Like a dynamic cursor, except that you can't see records that other users add, ...
by nageswaragunupudi
Mon Jun 17, 2013 3:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO RecordSet: What is the best CursorType to use?
Replies: 2
Views: 1026

Re: BROWSE com muitos registros - MYSQL remoto

... hacer, si se quiere solo consultar o una edición en línea. De acuerdo al tipo será más lento o más velóz. ******************* Tipo de cursor: adOpenForwardOnly,sólo permite desplazarse hacia adelante en los registros AdOpenKeyset, Igual que un cursor dinámico, excepto que no se pueden ver ...
by sjingo
Thu Mar 04, 2010 3:14 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: BROWSE com muitos registros - MYSQL remoto
Replies: 14
Views: 3984

Re: Leer una base de SQL Server

... "Provider=sqloledb;Data Source="+alltrim(instancia)+";Initial Catalog="+alltrim(bbdd)+";User Id=user;Password=***;", adOpenForwardOnly, adLockReadOnly ) nNum:=oRs:Fields("num"):Value oRs:Close() Un Saludo.
by softruz
Wed Mar 11, 2009 4:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Leer una base de SQL Server
Replies: 5
Views: 921

Re: accesso a database SQL

HO FATTO: #define adOpenForwardOnly 0 #define adOpenKeyset 1 #define adOpenDynamic 2 #define adOpenStatic 3 #define adLockReadOnly 1 #define adLockPessimistic 2 #define adLockOptimistic 3 #define adLockBatchOptimistic 4 local cDsn ...
by damianodec
Tue Feb 17, 2009 8:25 am
 
Forum: All products support
Topic: accesso a database SQL
Replies: 11
Views: 3086

... SIEMPRE devuelve -1. Dependiendo del tipo de cursor son las cosas que pudes hacer con el recordset Estos son los tipos de cursores existentes: adOpenForwardOnly 0 Es el cursor por defecto y nos permite recorrer el Recordset en forma secuencial. adOpenKeySet 1 Permite movernos hacia delante ...
by R.F.
Tue Aug 14, 2007 11:03 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre ADO a René Flores o quien sepa
Replies: 4
Views: 2129

... OPEN relativamente alla riga oRs:Open( "SELECT * FROM Clienti ORDER BY Cliente", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=clienti.mdb", adOpenForwardOnly, a
by damianodec
Fri Jun 15, 2007 1:37 pm
 
Forum: All products support
Topic: Microsoft SQL Server
Replies: 3
Views: 1212

Enrico //--- oRs:Open( "SELECT * FROM Contatti", "Provider=SQLOLEDB;Integrated Security=SSPI;Data Source=EMAG\Emag;Initial Catalog=Ecmp", adOpenForwardOnly, adLockOptimistic ) //--- Source is the IP or DNS name of the server cFROM := "EMAG\Emag" // not a servername .. looks like a folder No, ...
by Enrico Maria Giordano
Mon May 14, 2007 6:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: New AdoRDD (free)
Replies: 203
Views: 103129

Enrico //--- oRs:Open( "SELECT * FROM Contatti", "Provider=SQLOLEDB;Integrated Security=SSPI;Data Source=EMAG\Emag;Initial Catalog=Ecmp", adOpenForwardOnly, adLockOptimistic ) //--- Source is the IP or DNS name of the server cFROM := "EMAG\Emag" // not a servername .. looks like a folder cUSER ...
by Rick Lipkin
Sun May 13, 2007 9:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: New AdoRDD (free)
Replies: 203
Views: 103129

Connection

... Table"), cnn:Errors and open method of recordsets is fast. My suggestion: ADORDD.CH #ifndef _ADORDD_CH #define _ADORDD_CH // Cursor Type #define adOpenForwardOnly 0 #define adOpenKeyset 1 #define adOpenDynamic 2 #define adOpenStatic 3 // Lock Types #define adLockReadOnly 1 #define adLockPessimistic ...
by digicad
Sun Apr 29, 2007 8:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: New AdoRDD (free)
Replies: 203
Views: 103129

Enrico,

>oRs:RecordCount() is -1 when an adOpenForwardOnly or adOpenDynamic cursor type is used.

OK, so oRS:RecordCount() <= 0 when there are no records, right?

Or, oRS:RecordCount() < 1

James
by James Bott
Tue Apr 17, 2007 3:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A Beginners Guide to ADO
Replies: 22
Views: 14033

oRs:RecordCount() is -1 when an adOpenForwardOnly or adOpenDynamic cursor type is used.

EMG
by Enrico Maria Giordano
Tue Apr 17, 2007 3:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A Beginners Guide to ADO
Replies: 22
Views: 14033
Next

Return to advanced search