Search found 427 matches: ocn

Return to advanced search

Re: New FTDN April 2024 (FWH 24.04)

... único registro existente o un nuevo registro y guardar en una tabla sin tener que abrir el objeto RowSet, lo que ahorra tiempo. Uso: oCustRec := oCn:Record( "customer" ) // crea un registo en blanco oCustRec:Edit() // edita y guarda (añade) un nuevo registro oCustRec:Blank() // carga ...
by Antonio Linares
Wed May 01, 2024 7:04 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN April 2024 (FWH 24.04)
Replies: 1
Views: 432

New FTDN April 2024 (FWH 24.04)

... editing a single existing record or a new record and saving to a table without having to open RowSet object, thus saving time. Usage: oCustRec := oCn:Record( "customer" ) // creates a blank record oCustRec:Edit() // edit and save (append) a new record oCustRec:Blank() // load another ...
by Antonio Linares
Wed Apr 24, 2024 7:14 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN April 2024 (FWH 24.04)
Replies: 1
Views: 432

Re: FWHMYSQL Insert failing

Good Morning Mr Rao, I made a test with oCN:InsertSQ() and it's also returning a wrong sentence. It's returning this: INSERT INTO `folha` ( `cemp`,`nfolha`,`cmat`,`cvandes`,`cvdorig`,`val_inf`, `val_calc` ,`total_inc`,`filial`,`clotacao`,`prazo`,`situacao` ...
by vilian
Mon Apr 08, 2024 11:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWHMYSQL Insert failing
Replies: 6
Views: 432

Re: FWHMYSQL Insert failing

When you face such problems, I suggest you compare the
oCn:InsertSQL( ... )
with
oCn:CreateTableSQL( <table> )

or
Please create a small sample that we can execute at our end on the above cloud server.
by nageswaragunupudi
Sat Apr 06, 2024 1:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWHMYSQL Insert failing
Replies: 6
Views: 432

Re: Question about performance RowSet

In the next release we will have: oRec := oCn:Record( cTable )oRec:Edit() for editing and saving a blank record. oRec := oCn:Record( cTable, cWhere )oRec:Edit() for editing a single existing record and saving the ...
by nageswaragunupudi
Thu Mar 21, 2024 10:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question about performance RowSet
Replies: 19
Views: 4152

Re: Question about performance RowSet

I am try this: Code: aRow := oCn:QueryResult( "select field1,field2 from states where code='WA'" ) if aRow == NIL // not found, then inserts aRow := { "aa","bb" } oCn:Upsert( "states", nil, { aRow ...
by nageswaragunupudi
Wed Mar 20, 2024 3:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question about performance RowSet
Replies: 19
Views: 4152

Error con FW_OpenRecordSet

Hola gente, me pueden decir que estoy haciendo mal: xdrive := curdrive() + ":\" + curdir()+"\esp" oCn := FW_OpenAdoConnection( { "FOXPRO", xdrive}, .T.) cSQL := "select top 10 Cliente, Fecha, licita, descrip, cantidad, devol from detlici where codigo ...
by jpcavagnaro
Sat Mar 09, 2024 11:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error con FW_OpenRecordSet
Replies: 1
Views: 113

Re: RAO advice on using Mysql

oCn:RowSet( cSql, 100 ) means read first 100 records only Sameway oCn:RecSet( cSql, 100 ) also means read first 100 records only. But oCn:RecSet( cSql, -100 ) means read entire table with page size 100. RecSet does not read ...
by nageswaragunupudi
Wed Feb 07, 2024 10:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: RAO advice on using Mysql
Replies: 12
Views: 1018

Re: RAO advice on using Mysql

Thanks Rao ,
just what I was looking for :D .
What does -100 mean in oCn:RecSet( cSql, -100 )
I knowo Cn:RecSet( cSql, 100 ) but not with a negative sign

Regards Maurizio
by Maurizio
Wed Feb 07, 2024 8:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: RAO advice on using Mysql
Replies: 12
Views: 1018

Re: RAO advice on using Mysql

:ActiveConnections is only for ADO recordsets. In fwmaria lib, it is oRs:oCn. To change the sql, please make a new RecSet object, set it to oBrw:oDbf and then close the old RecSet object You may try this sample and use similar logic #include "fivewin.ch"function ...
by nageswaragunupudi
Wed Feb 07, 2024 4:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: RAO advice on using Mysql
Replies: 12
Views: 1018

Re: RAO advice on using Mysql

I'm trying oCn:RecSet() and it's very, very fast, I noticed that certain methods that work with oCn:Rowset() with :RecSet() don't work.


What size of tables you tested?
by nageswaragunupudi
Thu Feb 01, 2024 6:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: RAO advice on using Mysql
Replies: 12
Views: 1018

Re: RAO advice on using Mysql

Thank Rao

I'm trying oCn:RecSet() and it's very, very fast, I noticed that certain methods that work with oCn:Rowset() with :RecSet() don't work.

Is it possible to have a list of :RecSet() methods?

Thank you
Maurizio
by Maurizio
Thu Feb 01, 2024 11:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: RAO advice on using Mysql
Replies: 12
Views: 1018

Re: Error con FW_OpenRecordSet

... TOLEAUTO:EXECUTE( 0 ) Called from: abd4.prg => MAIN( 58 ) en el dbf prudbt inserta el registro sin problema, el error lo da en el dbf prueba oCn := FW_OpenAdoConnection( "c:\fwh2212\samples\" ) oCnM := FW_OpenAdoConnection( { "FOXPRO", "c:\fwh2212\samples\"}, ...
by jpcavagnaro
Wed Dec 20, 2023 12:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error con FW_OpenRecordSet
Replies: 2
Views: 306

Error con FW_OpenRecordSet

... tengo este programa y no entiendo porque me da error el segundo insert: #include "FiveWin.ch" REQUEST HB_LANG_ES function Main() local oCn, oCnM, oRs, aStates LOCAL lShowError := .t. /* dbcreate( ".\prudbt", { { "id" , "n", 8, 0 }, ; { "Cliente " ...
by jpcavagnaro
Tue Dec 19, 2023 7:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error con FW_OpenRecordSet
Replies: 2
Views: 306

Re: FW_OpenRecordSet lento en red

... pone muy lento en red es una constulta muy sencilla: cSQL := "SELECT top 20 numero,nombre,domic FROM clientes" oRs1 := FW_OpenRecordSet( oCn, cSQL ) de que manera puedo acelerar esto, porque se pone muy lento. When we use TOP n, it is desirable to use ORDER BY clause.
by nageswaragunupudi
Mon Dec 18, 2023 6:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenRecordSet lento en red
Replies: 8
Views: 623
Next

Return to advanced search

cron