FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ADO RDD xHarbour
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: ADO RDD xHarbour
Posted: Sat Oct 24, 2015 12:19 PM
Antonio, this is not functioning (MSSQL 2014). I use
Code (fw): Select all Collapse
xValue :="'"+ STRTRAN( xValue, "'", "''" )+"'"

I do not use crypted strings.
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Re: ADO RDD xHarbour
Posted: Sat Oct 24, 2015 12:30 PM

Gunther,

Ill post a new build maybe today that solves this problem for all engines.

Regards

Antonio H Ferreira
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Re: ADO RDD xHarbour
Posted: Sun Oct 25, 2015 06:05 PM

New build adordd version 1.0 at https://github.com/AHFERREIRA/adordd.git

Changes:

Should compile now with Harbour and without FiveWin but I didnt test it.
Field replaces with special chars (single quotes, apostrophes, etc ) should work now.
DbEval improve speed.
Update 01_README.PDF with adordd error codes

Regards

Antonio H Ferreira
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Re: ADO RDD xHarbour
Posted: Tue Oct 27, 2015 11:50 AM

New build adordd version 1.0 at https://github.com/AHFERREIRA/adordd.git

Small bug corrections:

Corrected bug when updating a indexkey with UDF index.
Corrected bug when adding new record with UDF index and UDF index is empty.
Corrected bug when ZAP was given an error after when refreshing recordset.

Regards

Antonio H Ferreira
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Re: ADO RDD xHarbour
Posted: Wed Oct 28, 2015 07:51 PM

New build adordd ver 1.0 at https://github.com/AHFERREIRA/adordd.git

Changes:

Finally it seems that we managed to increase dramatically the opening times for huge tables and much better memory usage.

1) New SET ADO PRE OPEN THRESHOLD TO nRecords

This set will define how adordd will open the tables during app run time.

All the tables with records equal or greater than nRecords and without any WHERE opening clause
will be all open during app initialization.

You will wait a little for the app to start but after all table opening it will be very fast.
This will consume much memory at start but less during app run time.

You should balance yourself the value of nRecords accordingly to the time you are willing to wait to open
a table and your memory availability.
Its very easy opening a couple of tables > 500.000 recs to use some gigas of memory.

Even without this SET adordd will only take some time opening a table if its not open already
otherwise it will be very fast.

adordd its now extremely fast and can be truly compared to any other dbfcdx kind of rdd.

Ive made some trials and it seems to be running ok. Please check it yourselves and revert.

2) Code cleaning

3) Compile improvement with Harbour / xHarbour with or without FiveWin.

4) 01_readme.pdf new SET information.

Regards

Antonio H Ferreira
Posts: 117
Joined: Thu Jan 08, 2015 09:27 AM
Re: ADO RDD xHarbour
Posted: Thu Oct 29, 2015 08:34 AM

Antonio,

Thank you for this adordd version and adordd in general.

I tried to compile/link this newest adordd.

I got the following error:

Error: Unresolved external '_HB_FUN_HB_PS' referenced from C:\PIETER\XHARBOUR123
\LIB\ADORDD.LIB|adordd

Pieter

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: ADO RDD xHarbour
Posted: Thu Oct 29, 2015 08:37 AM

I have not had time to try your great work
I hope I can use it from now
Thank you for your effort

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Re: ADO RDD xHarbour
Posted: Thu Oct 29, 2015 08:48 AM

Pieter,

You must compile and link adordd.prg not adordd.lib.

There is a bug in INDEX ON temporary files without any UDFs or index condition otherwise its ok.
Ill post a new corrected build asap.

Regards

Antonio H Ferreira
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Re: ADO RDD xHarbour
Posted: Thu Oct 29, 2015 08:51 AM

Cristobal,

Thanks, Im looking forward to your comments.

Regards

Antonio H Ferreira
Posts: 117
Joined: Thu Jan 08, 2015 09:27 AM
Re: ADO RDD xHarbour
Posted: Thu Oct 29, 2015 09:11 AM

Antonio, oké, thanks.

Same error:
Error: Unresolved external '_HB_FUN_HB_PS' referenced from C:\PIETER\UB404-8SEPT
EMBER2015-V4\UB\ADORDD.OBJ

Am I doing something wrong with compiling/linking (or is it because of the bug)?

Pieter

Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Re: ADO RDD xHarbour
Posted: Thu Oct 29, 2015 09:20 AM

Pieter,

Are you using Harbour or xHarbour?

Try comment #include "hbcompat.ch"

Regards

Antonio H Ferreira
Posts: 117
Joined: Thu Jan 08, 2015 09:27 AM
Re: ADO RDD xHarbour
Posted: Thu Oct 29, 2015 09:42 AM

Antonio, I use Xharbour. I comment #include "hbcompat.ch" like you suggested. it is solved now. Thanks.

Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Re: ADO RDD xHarbour
Posted: Thu Oct 29, 2015 09:53 AM

Pieter,

Strange I use xHarbour and it compiles ok with that line not commented.

Could you try this to see if it works?

ifndef XHARBOUR

include "hbcompat.ch"

endif

Regards

Antonio H Ferreira
Posts: 117
Joined: Thu Jan 08, 2015 09:27 AM
Re: ADO RDD xHarbour
Posted: Thu Oct 29, 2015 10:02 AM

Antonio,

ifndef XHARBOUR

include "hbcompat.ch"

endif

With above code my program compiles and link.

Pieter

Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Re: ADO RDD xHarbour
Posted: Thu Oct 29, 2015 10:03 AM

Pieter,

Thanks

Regards

Antonio H Ferreira