... oError
MsgStop( "No se ha podido 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 ...
Search found 15 matches: adlockreadonly
Searched query: adlockreadonly
- Tue Apr 16, 2019 11:53 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Insertar registros en un Dbf desde tabla MSAccess
- Replies: 3
- Views: 832
- Sat Aug 18, 2018 3:25 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Error from ADO
- Replies: 14
- Views: 4143
Re: Error from ADO
... not useful for us)
3. adUseClient : This is the only choice we have
LockType:
1. adLockUnspecified (not to be used for new recordsets)
2. adLockReadOnly : This is not what you want when you want to make changes. (Note: This is useful when you read data not to be modified)
3. adLockPessimistic ...
3. adUseClient : This is the only choice we have
LockType:
1. adLockUnspecified (not to be used for new recordsets)
2. adLockReadOnly : This is not what you want when you want to make changes. (Note: This is useful when you read data not to be modified)
3. adLockPessimistic ...
- Fri Aug 11, 2017 3:31 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Error from ADO
- Replies: 14
- Views: 4143
Re: Error from ADO
... not useful for us)
3. adUseClient : This is the only choice we have
LockType:
1. adLockUnspecified (not to be used for new recordsets)
2. adLockReadOnly : This is not what you want when you want to make changes. (Note: This is useful when you read data not to be modified)
3. adLockPessimistic ...
3. adUseClient : This is the only choice we have
LockType:
1. adLockUnspecified (not to be used for new recordsets)
2. adLockReadOnly : This is not what you want when you want to make changes. (Note: This is useful when you read data not to be modified)
3. adLockPessimistic ...
- Sun Jul 28, 2013 8:53 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: ADO RecordSet Fetch() ?
- Replies: 21
- Views: 7399
Re: ADO RecordSet 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 ODBC ). This is the fastest ...
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 ODBC ). This is the fastest ...
- Thu Mar 04, 2010 3:14 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: BROWSE com muitos registros - MYSQL remoto
- Replies: 14
- Views: 4813
Re: BROWSE com muitos registros - MYSQL remoto
... para buscar datos o generar informes. Las incorporaciones, cambios o eliminaciones que hacen otros usuarios no son visibles.
Tipo de bloqueo: adLockReadOnly, Predeterminado. Sólo lectura- no puede modificar los datos
AdLockPessimistic, Bloqueo pesimista, registro a registro: el provedor hace lo ...
Tipo de bloqueo: adLockReadOnly, Predeterminado. Sólo lectura- no puede modificar los datos
AdLockPessimistic, Bloqueo pesimista, registro a registro: el provedor hace lo ...
- Wed Mar 11, 2009 4:26 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Leer una base de SQL Server
- Replies: 5
- Views: 999
Re: Leer una base de SQL Server
... cSQL:="SELECT COUNT(*) as num FROM tables WHERE code='"+alltrim(cCode)+"'"
oRs:Open( cSQL, "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.
oRs:Open( cSQL, "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.
- Tue Feb 17, 2009 8:25 am
- Forum: All products support
- Topic: accesso a database SQL
- Replies: 11
- Views: 4203
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 := "cDsn"
Local cName := "cName"
Local cPass := "cPass"
LOCAL oRs ...
#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 := "cDsn"
Local cName := "cName"
Local cPass := "cPass"
LOCAL oRs ...
- Sun Apr 29, 2007 8:25 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: New AdoRDD (free)
- Replies: 203
- Views: 114624
Connection
... CH
// Cursor Type
#define adOpenForwardOnly 0
#define adOpenKeyset 1
#define adOpenDynamic 2
#define adOpenStatic 3
// Lock Types
#define adLockReadOnly 1
#define adLockPessimistic 2
#define adLockOptimistic 3
#define adLockBatchOptimistic 4
// Field Types
#define adEmpty 0
#define adTinyInt 16 ...
// Cursor Type
#define adOpenForwardOnly 0
#define adOpenKeyset 1
#define adOpenDynamic 2
#define adOpenStatic 3
// Lock Types
#define adLockReadOnly 1
#define adLockPessimistic 2
#define adLockOptimistic 3
#define adLockBatchOptimistic 4
// Field Types
#define adEmpty 0
#define adTinyInt 16 ...
- Sun Apr 15, 2007 6:53 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: A Beginners Guide to ADO
- Replies: 22
- Views: 15536
A Beginners Guide to ADO
... all you can see are the records that matched your search at the point in time when the query was executed
( second parameter )
(1) adlockReadOnly
(2) adlockPessimistic
(3) adlockOptomistic
(4) adlockBatchOptomistic
How to Open a recordset .. this example is for MS Access .mdb
oRs ...
( second parameter )
(1) adlockReadOnly
(2) adlockPessimistic
(3) adlockOptomistic
(4) adlockBatchOptomistic
How to Open a recordset .. this example is for MS Access .mdb
oRs ...
- Tue Oct 03, 2006 1:12 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: MySql + ayuda
- Replies: 8
- Views: 2257
- Tue Sep 05, 2006 5:22 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: ADO events
- Replies: 0
- Views: 647
ADO events
... CreateObject(C_VFPCOMCLASS)
oRecordSet = CreateObject('ADODB.RECORDSET')
oRecordSet.CursorType = 3 && adOpenStatic
oRecordSet.LockType = 1 && adLockReadOnly
oRecordSet.Open('SELECT * FROM AUTHORS', + ;
'Provider=sqloledb;Server=MYSQL1;' + ;
'Initial Catalog= pubs;UId=sa;PWD=; ')
oEvents ...
oRecordSet = CreateObject('ADODB.RECORDSET')
oRecordSet.CursorType = 3 && adOpenStatic
oRecordSet.LockType = 1 && adLockReadOnly
oRecordSet.Open('SELECT * FROM AUTHORS', + ;
'Provider=sqloledb;Server=MYSQL1;' + ;
'Initial Catalog= pubs;UId=sa;PWD=; ')
oEvents ...
- Tue May 30, 2006 12:07 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Mi Primer MySQL
- Replies: 3
- Views: 1292
Mi Primer MySQL
// My First MySQL Program
#define adOpenForwardOnly 0
#define adOpenKeyset 1
#define adOpenDynamic 2
#define adOpenStatic 3
#define adLockReadOnly 1
#define adLockPessimistic 2
#define adLockOptimistic 3
#define adLockBatchOptimistic 4
FUNCTION Main()
LOCAL cQuery := "SELECT * FROM MyTable ...
#define adOpenForwardOnly 0
#define adOpenKeyset 1
#define adOpenDynamic 2
#define adOpenStatic 3
#define adLockReadOnly 1
#define adLockPessimistic 2
#define adLockOptimistic 3
#define adLockBatchOptimistic 4
FUNCTION Main()
LOCAL cQuery := "SELECT * FROM MyTable ...
- Tue Apr 11, 2006 3:07 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Generar archivos XML
- Replies: 3
- Views: 1159
Re: Aqui tienes un Ejemplo
... oDp:cIp+"; Port=3306; Database="+oDp:cDsnData+"; Uid="+oDp:cLogin+"; Pwd="+oDp:cPass+";"
oRs:Open( cSql ,;
cCon ,;
adOpenForwardOnly, adLockReadOnly )
oRs:Save( cFileXml , adPersistXML )
oRs:Close()
IF lOpen
ShellExecute( 0, "open", cFileXml)
ENDIF
Juan,
y si fuera por ejemplo un ...
oRs:Open( cSql ,;
cCon ,;
adOpenForwardOnly, adLockReadOnly )
oRs:Save( cFileXml , adPersistXML )
oRs:Close()
IF lOpen
ShellExecute( 0, "open", cFileXml)
ENDIF
Juan,
y si fuera por ejemplo un ...
- Mon Apr 10, 2006 2:22 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Generar archivos XML
- Replies: 3
- Views: 1159
Aqui tienes un Ejemplo
... Driver={MySQL ODBC 3.51 Driver}; Server="+oDp:cIp+"; Port=3306; Database="+oDp:cDsnData+"; Uid="+oDp:cLogin+"; Pwd="+oDp:cPass+";"
oRs:Open( cSql ,;
cCon ,;
adOpenForwardOnly, adLockReadOnly )
oRs:Save( cFileXml , adPersistXML )
oRs:Close()
IF lOpen
ShellExecute( 0, "open", cFileXml)
ENDIF
oRs:Open( cSql ,;
cCon ,;
adOpenForwardOnly, adLockReadOnly )
oRs:Save( cFileXml , adPersistXML )
oRs:Close()
IF lOpen
ShellExecute( 0, "open", cFileXml)
ENDIF
- Sun Nov 06, 2005 4:15 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Ado & MDB
- Replies: 3
- Views: 2259
ADO
... define adOpenForwardOnly 0
#define adOpenKeyset 1
#define adOpenDynamic 2
#define adOpenStatic 3
//---- LockTypeEnum Values ----
#define adLockReadOnly 1
#define adLockPessimistic 2
#define adLockOptimistic 3
#define adLockBatchOptimistic 4
//---- CursorLocationEnum Values ----
#define ...
#define adOpenKeyset 1
#define adOpenDynamic 2
#define adOpenStatic 3
//---- LockTypeEnum Values ----
#define adLockReadOnly 1
#define adLockPessimistic 2
#define adLockOptimistic 3
#define adLockBatchOptimistic 4
//---- CursorLocationEnum Values ----
#define ...