ADO RDD xHarbour

User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: ADO RDD xHarbour

Post by dutch »

Dear Antonio,

Thank you for your help.
AHF wrote: What do you mean open record ?
I mean open table with all records.
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
AHF
Posts: 837
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Post by AHF »

Lucas and Dutch,

Please remember that only the number of records its not enough.

The recsize x nrecords (although in SQL its indicative) its what matters mainly on WAN as this represents the bytes number bring across the cable.

Can you check that?
Regards
Antonio H Ferreira
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: ADO RDD xHarbour

Post by dutch »

I try to create view from 2 table as below

Code: Select all

cCreateViewSql := "CREATE VIEW TBLGST AS SELECT CCRTBL.TBL_RMNO, CCRTBL.TBL_LAST, CCRTBL.TBL_FIRST, CCRTBL.TBL_ARR, CCRTBL.TBL_DEP,  CCRGST.GST_LAST FROM CCRTBL INNER JOIN CCRGST ON CCRTBL.TBL_GSTNO=CCRGST.GST_INTNO"
hb_GetAdoConnection():Execute(cCreateViewSql)
But got an error as

Code: Select all

 Description : Error ADODB.Connection/0  S_OK: EXECUTE
   Args:
     [   1] = C   CREATE VIEW TBLGST AS SELECT CCRTBL.TBL_RMNO, CCRTBL.TBL_LAST, CCRTBL.TBL_FIRST, CCRTBL.TBL_ARR, CCRTBL.TBL_DEP,  CCRGST.GST_LAST FROM CCRTBL INNER JOIN CCRGST ON CCRTBL.TBL_GSTNO=CCRGST.GST_INTNO

 
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
AHF
Posts: 837
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Post by AHF »

Dutch,

Please remember that without any autoinc field it will not navigate correctly so you must include that field always.
I dont think you can join with different field names.

CCRTBL.TBL_GSTNO=CCRGST.GST_INTNO"
Regards
Antonio H Ferreira
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: ADO RDD xHarbour

Post by dutch »

Dear Antonio,

The problem is my misunderstood. The VIEW has created but I will recreate it then it got error. I have to DROP VIEW before CREATE VIEW, if exist.
But it still take long time to CREATE VIEW. After reuse view, it is quite fast.

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
AHF
Posts: 837
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Post by AHF »

Dutch,

I think you should only need to create view once.
Then simply use it as any other table.
I think View is kept updated by the server.
Regards
Antonio H Ferreira
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: ADO RDD xHarbour

Post by vilian »

Is It Working with MariaDB ?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
AHF
Posts: 837
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Post by AHF »

Vilian,

Never tried it.

Can you try to use MYSQL engine at ADORDD and at the Mysql ODBC set it up to connect to MariaDb?

I think the connection string its the same but if not it should be very easy to add support for it in ADORDD.
Regards
Antonio H Ferreira
AHF
Posts: 837
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Post by AHF »

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

Code improvements
Corrected bug in Append from
Working without true locks maintain locklist array nevertheless
Get date value from a field was returning date + time comparison of dDate = dDate even equal dates was returning false. Forgotten to un comment during trials
Trusted connection in MSSQL con string
Regards
Antonio H Ferreira
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Re: ADO RDD xHarbour

Post by byte-one »

Antonio, two errors in the new Version:
In ADO_TRANS() the variable n are not defined.
In ADO_FILE() the variable cTmpTable not defined.
Regards,
Günther
---------------------------------
office@byte-one.com
AHF
Posts: 837
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Post by AHF »

Gunther,

Done!

Thanks.

Ill post new version today.
Regards
Antonio H Ferreira
AHF
Posts: 837
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Post by AHF »

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

Minor corrections.
Added connection strings to (not tested) :

SQLITE
POSTGRE
INFORMIX
ANYWHERE
Regards
Antonio H Ferreira
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: ADO RDD xHarbour

Post by Antonio Linares »

Antonio,

You are doing an excellent work, congratulations! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: ADO RDD xHarbour

Post by James Bott »

I am trying to compile the ADORDD.PRG but I am getting the following "unresolved externals" (see below).

I was using the standard buildx.bat program but then I found the functions in xHarbour\libs\rdds.lib and added this lib to the buildx.bat but the same unresolved externals are still showing up.

buildx.bat
...
echo %hdirl%\rdds.lib + >> b32.bc

Maybe I am also missing a CH file?

How can I confirm that the RDDS.LIB is getting linked in?

Regards,
James



ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ FiveWin for xHarbour 15.05 - Jun. 2015 xHarbour development power ³Ü
³ (c) FiveTech, 1993-2015 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 ³Û
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ
ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß
Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20130326)
Copyright 1999-2013, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'adordd.prg' and generating preprocessed output to 'adordd.ppo'...

100
...
5400
Generating C source output to 'adordd.c'...
Done.

Lines 5387, Functions/Procedures 131, pCodes 17944
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
adordd.c:
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_HB_FUN_USRRDD_RDDDATA' referenced from C:\USERS\JAMES\DOCUMENTS\PROJECTS\ADORDD\ADORDD.OBJ
Error: Unresolved external '_HB_FUN_USRRDD_AREADATA' referenced from C:\USERS\JAMES\DOCUMENTS\PROJECTS\ADORDD\ADORDD.OBJ
Error: Unresolved external '_HB_FUN_UR_SUPER_ERROR' referenced from C:\USERS\JAMES\DOCUMENTS\PROJECTS\ADORDD\ADORDD.OBJ
Error: Unresolved external '_HB_FUN_UR_SUPER_SETFIELDEXTENT' referenced from C:\USERS\JAMES\DOCUMENTS\PROJECTS\ADORDD\ADORDD.OBJ
Error: Unresolved external '_HB_FUN_UR_SUPER_ADDFIELD' referenced from C:\USERS\JAMES\DOCUMENTS\PROJECTS\ADORDD\ADORDD.OBJ
Error: Unresolved external '_HB_FUN_UR_SUPER_OPEN' referenced from C:\USERS\JAMES\DOCUMENTS\PROJECTS\ADORDD\ADORDD.OBJ
Error: Unresolved external '_HB_FUN_UR_SUPER_CLOSE' referenced from C:\USERS\JAMES\DOCUMENTS\PROJECTS\ADORDD\ADORDD.OBJ
Error: Unresolved external '_HB_FUN_UR_SUPER_EVALBLOCK' referenced from C:\USERS\JAMES\DOCUMENTS\PROJECTS\ADORDD\ADORDD.OBJ
Error: Unresolved external '_HB_FUN_USRRDD_GETFUNCTABLE' referenced from C:\USERS\JAMES\DOCUMENTS\PROJECTS\ADORDD\ADORDD.OBJ
* Linking errors *

Process completed, Exit Code 0.
Execution time: 00:10.375

--------------------------------------
User avatar
lucasdebeltran
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am
Contact:

Re: ADO RDD xHarbour

Post by lucasdebeltran »

Hello,

You have to link USRRDD.LIB OR HBUSRRDD.LIB in Harbour.

In your main, put REQUEST ADORDD, ADOVERSION
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
Post Reply