ADO RDD xHarbour

Re: ADO RDD xHarbour

Postby dutch » Thu Jun 18, 2015 9:31 am

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)
User avatar
dutch
 
Posts: 1543
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: ADO RDD xHarbour

Postby AHF » Thu Jun 18, 2015 9:48 am

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
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby dutch » Thu Jun 18, 2015 10:51 am

I try to create view from 2 table as below
Code: Select all  Expand view  RUN
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  Expand view  RUN
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)
User avatar
dutch
 
Posts: 1543
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: ADO RDD xHarbour

Postby AHF » Thu Jun 18, 2015 11:41 am

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
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby dutch » Fri Jun 19, 2015 3:10 am

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)
User avatar
dutch
 
Posts: 1543
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: ADO RDD xHarbour

Postby AHF » Fri Jun 19, 2015 6:57 am

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
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby vilian » Tue Jun 23, 2015 12:23 am

Is It Working with MariaDB ?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: ADO RDD xHarbour

Postby AHF » Tue Jun 23, 2015 7:33 am

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: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby AHF » Wed Jun 24, 2015 2:31 pm

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
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby byte-one » Thu Jun 25, 2015 8:39 am

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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: ADO RDD xHarbour

Postby AHF » Thu Jun 25, 2015 8:49 am

Gunther,

Done!

Thanks.

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

Re: ADO RDD xHarbour

Postby AHF » Thu Jun 25, 2015 3:46 pm

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
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby Antonio Linares » Thu Jun 25, 2015 6:39 pm

Antonio,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: ADO RDD xHarbour

Postby James Bott » Tue Jun 30, 2015 6:39 pm

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
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: ADO RDD xHarbour

Postby lucasdebeltran » Tue Jun 30, 2015 7:08 pm

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.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 14 guests