topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
ADO RDD xHarbour | Antonio, at this place on line 5348 the rdd should not be hardcoded!
[code=fw:3v37y97z]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">IF</span> !FILE<span style="color: #000000;">(</span>cTable<span style="color: #000000;">)</span><br /> DBCREATE<span style="color... |
ADO RDD xHarbour | Gunther,
You re absolutely right. Done!
Thanks. |
ADO RDD xHarbour | Dear all,
Please apologize the misaligned code of aodrdd.prg but I only realize it now with Lucas.
Im using NotePad++ and although code is perfectly aligned there it seems thats not the case with MED that most of you are using.
As soon as I can I will passed it through MED to get it all aligned and Ill posted. |
ADO RDD xHarbour | Antonio, for MSSQL should on line ~464 the [WA_ENGINE] "MSSQL" to be and not "SQL"!! And if the authentification to the DB without a password but with windows-authentification the text "Trusted_Connection=yes" should be used.
[code=fw:29fr7hmy]<div class="fw" id="{CB}" style="font-family: monospace;"> &nb... |
ADO RDD xHarbour | [quote:314bldbd]Antonio, for MSSQL should on line ~464 the [WA_ENGINE] "MSSQL" to be and not "SQL"!! And if the authentification to the DB without a password but with windows-authentification the text "Trusted_Connection=yes" should be used.[/quote:314bldbd]
Done! |
ADO RDD xHarbour | New adordd version at <!-- m --><a class="postlink" href="https://github.com/AHFERREIRA/adordd.git">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->
The code is aligned and clean.
Please read carefully readme to set your app to use adordd.
And please dont forget donate to the humanitarian organization 20 Euros... |
ADO RDD xHarbour | New adordd English manual at <!-- m --><a class="postlink" href="https://github.com/AHFERREIRA/adordd.git">https://github.com/AHFERREIRA/adordd.git</a><!-- m --> |
ADO RDD xHarbour | Antonio in line 405 the code must be anstead:
[code=fw:2t2c1kww]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">CASE</span> aWAData<span style="color: #000000;">[</span> WA_ENGINE <span style="color: #000000;">]</span> == <span style="color: #ff0000;">"SQL"... |
ADO RDD xHarbour | Gunther,
Done!
Thanks. |
ADO RDD xHarbour | I try to open table in localhost (MySql), the result is below.
It took time to open 335,819 records. Is it normal?
[url=http://postimage.org/:3uxdn7o6][img:3uxdn7o6]http://s9.postimg.org/4fz9lncpb/Open_Tbl.png[/img:3uxdn7o6][/url:3uxdn7o6]
[code=fw:3uxdn7o6]<div class="fw" id="{CB}" style="fo... |
ADO RDD xHarbour | Dutch,
I would say thats normal.
The problem is when we use a table we read all records to ADO if we are using adUseClient as :CursorLocation.
With the index the time is doubled because ADORDD first issues a query SELECT * FROM... and then when you SE INDEX it issues another SELECT * FROM ORDER BY.
So 2 queries that ... |
ADO RDD xHarbour | 1) Function and Command to open/read/write, relation, dbsetfilter(), ordsetfocus(), dbseek() is working well.
2) open record with relation is quite slow. I think the point is JOIN table is the key. Because 'CCRGST' table (guest details) no need to open all records but only the records which related with main table 'C... |
ADO RDD xHarbour | Hello,
Set relation works the same way as in DBFCDX.
Try at adordd.prg to comment out all cache settings. I am using ADORDD in a WAN scenario via Internet and speed is very good. |
ADO RDD xHarbour | Dutch,
[quote:3dnjh1cj]2) open record with relation is quite slow. I think the point is JOIN table is the key. Because 'CCRGST' table (guest details) no need to open all records but only the records which related with main table 'CCRTBL' (reservation details).
Is it correct?[/quote:3dnjh1cj]
What do you mean open rec... |
ADO RDD xHarbour | Lucas,
[quote="lucasdebeltran":1gwjp5gp]Hello,
Set relation works the same way as in DBFCDX.
Try at adordd.prg to comment out all cache settings. I am using ADORDD in a WAN scenario via Internet and speed is very good.[/quote:1gwjp5gp]
How many records the biggest table? |
ADO RDD xHarbour | 30.000 records so far. |
ADO RDD xHarbour | Dear Antonio,
Thank you for your help.
[quote="AHF":15yx2t2t]
What do you mean open record ?
[/quote:15yx2t2t]
I mean open table with all records. |
ADO RDD xHarbour | 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? |
ADO RDD xHarbour | I try to create view from 2 table as below
[code=fw:3q9i9wpn]<div class="fw" id="{CB}" style="font-family: monospace;">cCreateViewSql := <span style="color: #ff0000;">"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... |
ADO RDD xHarbour | 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" |
ADO RDD xHarbour | 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 |
ADO RDD xHarbour | 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. |
ADO RDD xHarbour | Is It Working with MariaDB ? |
ADO RDD xHarbour | 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. |
ADO RDD xHarbour | New version adordd posted at <!-- m --><a class="postlink" href="https://github.com/AHFERREIRA/adordd.git">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->
Code improvements
Corrected bug in Append from
Working without true locks maintain locklist array nevertheless
Get date value from a field was returning dat... |
ADO RDD xHarbour | Antonio, two errors in the new Version:
In ADO_TRANS() the variable n are not defined.
In ADO_FILE() the variable cTmpTable not defined. |
ADO RDD xHarbour | Gunther,
Done!
Thanks.
Ill post new version today. |
ADO RDD xHarbour | New version adordd at <!-- m --><a class="postlink" href="https://github.com/AHFERREIRA/adordd.git">https://github.com/AHFERREIRA/adordd.git</a><!-- m -->
Minor corrections.
Added connection strings to (not tested) :
SQLITE
POSTGRE
INFORMIX
ANYWHERE |
ADO RDD xHarbour | Antonio,
You are doing an excellent work, congratulations! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
ADO RDD xHarbour | 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... |
ADO RDD xHarbour | Hello,
You have to link USRRDD.LIB OR HBUSRRDD.LIB in Harbour.
In your main, put REQUEST ADORDD, ADOVERSION |
ADO RDD xHarbour | Lucas,
USRRDD.LIB did it. Thanks!
I sent a couple of hours trying to figure that out. Whew.
James |
ADO RDD xHarbour | Ok, now I am getting another error when trying to run tryadordd.exe. It is an argument error for the function RDDGETINFO().
Any ideas?
James
Application
===========
Path and name: C:\Users\James\Documents\Projects\ADORDD\tryadordd.exe (32 bits)
Size: 3,059,712 bytes
Compiler version: xHarbour 1.2.3 Intl. (S... |
ADO RDD xHarbour | OK, here is the line erroring out.
TLOCKS->(DBSETINDEX(aLockCtrl[1]+RDDINFO(RDDI_ORDBAGEXT,,aLockCtrl[2]) ))
I have done a global search and I can't find any .H or .CH files containing the manifest constant RDDI_ORDBAGEXT. So that seems to be the problem. Anyone know which file contains that manifest constant? Or, at... |
ADO RDD xHarbour | Mr Lucas
Can you explain the purpose of
[code=fw:1h2gqrro]<div class="fw" id="{CB}" style="font-family: monospace;"> SET ADO TEMPORAY NAMES <span style="color: #0000ff;">INDEX</span> LIST <span style="color: #0000ff;">TO</span> <span style="color: #000000;">{</span><span style="color: #ff0000;">"TMP... |
ADO RDD xHarbour | OK, it's not the manifest constant, it seems to be line 117 of TRYADORDD.PRG
//CONTROL LOCKING IN ADORDD FOR BOTH TABLE AND RECORD DONT PUT FINAL "\"
SET ADO LOCK CONTROL SHAREPATH TO "D:\WHATEVER" RDD TO "DBFCDX"
I changed the "D:\WHATEVER" to "C:\WHATEVER" and created that directory, and I still get the sa... |
ADO RDD xHarbour | Maybe someone can figure out why even this tiny test program won't run?
James
[code=fw:31it1eta]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />Purpose: Simple as possible ADORDD test<br />Author : James Bott<br />Date : 6/30/2015 5:02:35 PM<br /><br />*/</span><br />... |
ADO RDD xHarbour | James,
Please try this:
[code=fw:wfra6tee]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">/*<br />Purpose: Simple as possible ADORDD test<br />Author : James Bott<br />Date : 6/30/2015 5:02:35 PM<br /><br />*/</span><br /><br /><span style="color: #00D7D7;">#... |
ADO RDD xHarbour | Dear Mr. Nages,
Glad to hear from you.
For ensuring recno() we created an autoincremental field on each table. With this command is possible to change its name, particulary when the table is not created by DbCreate().
SET ADO TEMPORARY NAMES indicate the temporary indexes and destroyed after connection. So we can is... |
ADO RDD xHarbour | And yes, xBrowse() is working too!. |
ADO RDD xHarbour | Lucas,
I still get the same "open" error with your code. I know this is a valid, working database as I can use if from another ADO app I wrote. I would also expect that the customers table already has an autoincrement field since it was (presumably) created by Access as the Northwind.mdb database is the standard Acces... |
ADO RDD xHarbour | Lucas,
It would be very helpful if you could post a collection of a working PRG, EXE, and MDB that we could look at and test. Or, just email it to me as a zip attachment, but I am sure others would like to see it too.
I am sure there is a very simple mistake I am making, but I spent over 5 hours on this yesterday wit... |
ADO RDD xHarbour | Lucas,
From your profile it appears that you are using Harbour, not xHarbour. Maybe that is an issue? I thought from the title of this message thread, that the ADORDD was being developed using xHarbour. I am using xHarbour.
James |
ADO RDD xHarbour | James,
Please send me your database and prg file to lucasdebeltran at gmail. com |
ADO RDD xHarbour | Lucas,
Sent to your email.
James |
ADO RDD xHarbour | Dear Mr James,
Here is working fine:
[img:2xpchutt]http://i59.tinypic.com/4kvjg3.png[/img:2xpchutt]
Which OS do you have?.
What error do you get?. |
ADO RDD xHarbour | From the above error, it appears that ADORDD is internally generating an SQL statement "SELECT * FROM " + <tablename> to open the record set.
Instead oRs:Open( <tablename>, oCn, cursortype, locktype, adCmdTable ) // 5th parameter adCmdTable
In that rare occasion when the provider supports "scrollable server-side curs... |
ADO RDD xHarbour | Hi Guys,
I'm trying to test ADORDD, but when i compile the adordd.prg, appear these errors:
[code=fw:23y41sq2]<div class="fw" id="{CB}" style="font-family: monospace;"><br />ADORDD.PRG<span style="color: #000000;">(</span><span style="color: #000000;">288</span><span style="color: #000000;">)</span> Error E0020... |
ADO RDD xHarbour | Vilian,
From your errors, it appears that Harbour doesn't support the TRY/CATCH/END commands. Or, maybe you need to #include another file.
I am using xHarbour and I don't get any errors.
James |
ADO RDD xHarbour | Lucas,
[quote:2nzvjcik]Try to put ADORDD.LIB as the first lib.[/quote:2nzvjcik]
Good guess, that worked. Before I had it as the last library.
James
[code=fw:2nzvjcik]<div class="fw" id="{CB}" style="font-family: monospace;">...<br />echo %bcdir%\lib\c0w32.obj + > b32.bc<br />echo adordd.lib + >> b32.bc<br />...<br ... |
ADO RDD xHarbour | Thanks James,
I included the [b:1pdl6vqi]hbcompat.ch[/b:1pdl6vqi], and only rest some warnings:
[code=fw:1pdl6vqi]<div class="fw" id="{CB}" style="font-family: monospace;"><br />adordd.prg<span style="color: #000000;">(</span><span style="color: #000000;">4471</span><span style="color: #000000;">)</span> Warni... |
ADO RDD xHarbour | Lucas,
I am running Win 8.1 x64. I'm using the latest xHarbour and FWH.
The complete error is shown in a previous message. It is failing to open the table.
Please send me your working EXE so I can try it here.
James |
ADO RDD xHarbour | James,
I sent you a zip file with an exe so as to retreive full error.log and check error.
Here you also have it:
<!-- m --><a class="postlink" href="http://rg.to/file/6a40703c481c85f1d406d0da5b61b282/JAMES.zO___.html">http://rg.to/file/6a40703c481c85f1d406d ... zO___.html</a><!-- m --> |
ADO RDD xHarbour | Lucas,
OK, I was linking in adordd.lib and you were using #include "adordd.prg." When I changed to your syntax, it worked. Perhaps I need to move the lib location in the buildx.bat file?
James |
ADO RDD xHarbour | Hello,
Try to put the adordd.lib as the first lib.
Or maybe there is something wrong at the lib.
Glad you get it working. |
ADO RDD xHarbour | Vilian,
I don't know why you are getting the lRet as being ambiguous since it is defined as a LOCAL. They do happen to be within the TRY/END sequence so I wonder if that isn't still an issue.
The other warnings I wouldn't worry about.
You can build your own lib using Borland's TLIB.EXE, or just add the prg to your ... |
ADO RDD xHarbour | Vilian,
You can safely ignore such warnings.
They are from functions under development. |
ADO RDD xHarbour | Thanks Lucas,
Now, when i try open a file appear this error:
[b:1jqyzovz](DOS error -2147352567) WINOLE/1007 Operation not allowed when the objeto has closed(0x800A0E78) ADODB.Connection[/b:1jqyzovz]
I'm trying to use ADORDD with [b:1jqyzovz]MariaDb[/b:1jqyzovz]. |
ADO RDD xHarbour | Hello,
We tested with Access, MySQL and MSSQL.
With the above, its working pretty good. |
ADO RDD xHarbour | Vilian,
It appears that MariaDB is not yet supported. However, take a look at the ADOOPENCONNECT Method of the ADORDD.PRG and you will see how the various SQL databases are opened. Maybe you can create your own CASE statement for the MariaDB. Let us know if that works.
Alternately, you could just try getting up and r... |
ADO RDD xHarbour | James,
With MariaDb don´t work. I changed to MySql and now i have this error:
[code=fw:3vkpltpo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> Error description: <span style="color: #000000;"><span style="color: #000000;">(</span>DOS</span> Error <span style="color: #000000;">-2147352567</span... |
ADO RDD xHarbour | Vilian,
It appears to be saying that it is not finding the database. Perhaps the path is not specified or is incorrect.
You should also check your normal connection syntax with that being used in the ADORDD.PRG's ADOOOPENCONNECT() function.
I don't have MySQL installed here so I can't test it. Plus I am running xHar... |
ADO RDD xHarbour | Vilian,
See postings 4, and 5 on page 27 of this message thread on solving issues with Harbour.
James |
ADO RDD xHarbour | James,
Thanks, but we decided make this migration using Tdolphin. It is more easy than I did think <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> |
ADO RDD xHarbour | Antonio F.,
There is a typo in this SET command from the ado.ch file:
#command SET ADO TEMPORAY NAMES INDEX LIST TO <array> => ListTmpNames( <array>) /* defining temporary index array list of names*/
"TEMPORAY" should be "TEMPORARY". I know this will break backward compatibility, but without it all new code will be... |
ADO RDD xHarbour | Antonio F,
I am attempting to import records from a DBF to an Access table. This crashes:
[code=fw:23s0wrd6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />Purpose: Large file ADORDD test<br />Author : James Bott<br />Date : 7/9/2015 4:52:20 PM<br /><br />*/</span><br... |
ADO RDD xHarbour | Antonio F,
I have been unable to do any type of APPEND. Either there are bugs in the ADORDD or I am doing something wrong.
APPEND FROM... errors out as shown in my previous message. And, APPEND BLANK errors out in the code below. This means that I cannot get any data into the table using ADORDD. I suspect I am doing ... |
ADO RDD xHarbour | I note that Antonio Ferreira seems to have disappeared. He hasn't posted anything on this forum since June 30.
Is the ADORDD project now dead?
Does anyone know what happened to him? I hope he has just been too busy.
I am very anxious to get some data into a SQL database, but so far have been unable to do so using th... |
ADO RDD xHarbour | Hi James,
Antonio F wrote me that he is on holiday in July.
Do you mean to import a dbf file and export it to a sql database in general? (see code below) or with adordd?, another tool is: <!-- m --><a class="postlink" href="http://dbfviewer2000.com">http://dbfviewer2000.com</a><!-- m -->
[code=fw:2i0eum2y]<div clas... |
ADO RDD xHarbour | James,
To create an Access database:
FW_CreateMdb( "test.mdb" )
To connect to it:
oCon = FW_OpenAdoConnection( "test.mdb" )
To create a table:
[code=fw:16ywtw60]<div class="fw" id="{CB}" style="font-family: monospace;">FWAdoCreateTable<span style="color: #000000;">(</span> <span style="color: #ff0000;">"tableN... |
ADO RDD xHarbour | Pieter and Antonio,
I have already successfully created a table in the ACCESS database. Now I want to import data from a DBF to that table. The problem is that both APPEND BLANK and APPEND FROM error out. With a working RDD I should just be able to do:
use customer alias "cust"
append from SAMPLE.DBF via "DBFCDX"
B... |
ADO RDD xHarbour | [url=http://postimage.org/:2ilsszh6][img:2ilsszh6]http://s14.postimg.org/6g14x3jpd/error1.png[/img:2ilsszh6][/url:2ilsszh6]
[url=http://postimage.org/:2ilsszh6]image url[/url:2ilsszh6]
I got this error when I pressed new from browse window.
This works:
APPEND BLANK
REPLACE FIELD->FIRST... |
ADO RDD xHarbour | Pieter,
The field HBRECNO has to be added to every table. It is an auto-increment field.
Search this forum topic for HBRECNO for more information. I still do not really understand its purpose, but it is needed, nor do I have the exact syntax for adding it to existing SQL databases. Maybe someone else can show us how.... |
ADO RDD xHarbour | The file() function does not seem to be working.
In the tryadordd.prg this function is used like this:
if !FILE("table1;northwind.mdb")
It always returns .F. even when the table exists. I also tried it with the preceding \ syntax (that is used elsewhere in the example program):
if !FILE("table1";\northwind.mdb")
I... |
ADO RDD xHarbour | Ok, some of the errors I have been reporting were due to another buildx.bat file that was in the path which was not linking in all three of the LIBs needed for the ADORDD. My bad.
I tried appending from a dbf to a SQL table (in an ACCESS) and it worked until it crashed at record 548. I am including the error log below... |
ADO RDD xHarbour | [quote="James Bott":9nhhq69c]Pieter,
The field HBRECNO has to be added to every table. It is an auto-increment field.
Search this forum topic for HBRECNO for more information. I still do not really understand its purpose, but it is needed, nor do I have the exact syntax for adding it to existing SQL databases. Maybe ... |
ADO RDD xHarbour | Pieter,
Thanks for the response. In my case the table already has the HBRECNO field so that is not the issue. Today I will try a different database and try checking the integrity of the original one.
Perhaps you can post your error log when yours crashes.
James |
ADO RDD xHarbour | Hello, I am new to the forum and downloaded the ADORDD code.
I did several tests and several changes.
url off my fork
<!-- m --><a class="postlink" href="https://github.com/maromano/adordd">https://github.com/maromano/adordd</a><!-- m -->
I created
ADO VIRTUAL DELETE SET ON / OFF
ADO SET DEFAULT DELETED FIELD TO cna... |
ADO RDD xHarbour | Antonio,
[quote:2123b8gs]FWAdoCreateTable( "tableName", aFields, oCon, .T. )[/quote:2123b8gs]
Please, what is the last parameter for this function example above?
Also, is there a place I can find documentation for all the ADO functions?
James |
ADO RDD xHarbour | Pieter or anyone:
Is there way to not import deleted records from a DBF, or do we need to PACK the database before importing?
Maybe we can just do:
APPEND FROM ... FOR ! DELETED()
James |
ADO RDD xHarbour | James,
You can review all FWH ADO functions source code in FWH\source\function\adofuncs.prg
In FWAdoCreateTable() the last parameter is lAddAutoInc. As far as I understand it, it means to automatically create an auto incremental ID field.
I started a page in the wiki for the FWH ADO functions but it is not completed... |
ADO RDD xHarbour | Hi , James
In my tests the append from work via dbfcdx
Download my code and test.
Just did tests with ACCESS . |
ADO RDD xHarbour | [quote="James Bott":1gerpj9k]Pieter or anyone:
Is there way to not import deleted records from a DBF, or do we need to PACK the database before importing?
Maybe we can just do:
APPEND FROM ... FOR ! DELETED()
James[/quote:1gerpj9k]
James
With my code if you use
ADO VIRTUAL SET DELETE ON
and let SET DELETED OFF,
q... |
ADO RDD xHarbour | Maromano,
Thanks for your responses. I'm sure that your deleted functions will be useful.
I wrote a custom database class that actually reuses deleted records so the DBFs never need compacting. However, right now I am not sure if this can be used with SQL tables since they require an auto-increment field over which w... |
ADO RDD xHarbour | [quote="James Bott":1dmh9z7e]Pieter or anyone:
Is there way to not import deleted records from a DBF, or do we need to PACK the database before importing?
Maybe we can just do:
APPEND FROM ... FOR ! DELETED()
James[/quote:1dmh9z7e]
From XHarbour reference guide FROM APPEND:
[quote:1dmh9z7e]Deleted records: Record... |
ADO RDD xHarbour | [quote="pieter":3vs5riui]
I tried to test this, but I cannot get this working because the following code does not work also:
[code=fw:3vs5riui]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="colo... |
ADO RDD xHarbour | DROP TABLE
Using ADORDD or the ADO functions, is there any way to drop a table?
I know you can ZAP a table but this doesn't zero out the auto-increment fields. The table is empty but the auto-increment fields start at the last number that was used. I see that this is a good thing, but for testing I need to drop the t... |
ADO RDD xHarbour | Maromano,
In your tests have you been able to do an APPEND FROM... with several thousand records?
I have tried my code twice and it crashed at 548 records once, and 1354 records once (after rebooting). So, I suspect this has something to do with memory. Both APPEND FROM tests were using the same database for importin... |
ADO RDD xHarbour | James,
[quote="James Bott":36fptfam]DROP TABLE
Using ADORDD or the ADO functions, is there any way to drop a table?
I know you can ZAP a table but this doesn't zero out the auto-increment fields. The table is empty but the auto-increment fields start at the last number that was used. I see that this is a good thing, ... |
ADO RDD xHarbour | Kleyber,
Thanks, I did not know about TRUNCATE TABLE.
However, I just looked at adofuncs.prg and TRUNCATE does not seem to be supported.
Regards,
James |
ADO RDD xHarbour | James:
TRUNCATE TABLE is an ADO command, here is a sample
[code=fw:2eb0r4ib]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> cCmdSql := <span style="color: #ff0000;">"TRUNCATE TABLE "</span> + cTabNam<br /><br /> <span style="color: #00C800;">TRY</span><br /> oApp:<span style="color: #0000... |
ADO RDD xHarbour | Armando,
Thanks, I will give it a try.
James |
ADO RDD xHarbour | I am having trouble with AdoCreateTableSQL(). It errors out.
Here is the section of my code:
[code=fw:pnxmh7wb]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #B900B9;">// Read structure of DBF </span><br /> aFields := dbstruct<span style="color: #000000;">(</span> <span style... |
ADO RDD xHarbour | Ignore my previous message--I found a couple of errors, and now it is working.
James |
ADO RDD xHarbour | Armando,
I tried your "truncate table.." command but it errors out, and I don't have your showErrror( ) function so I don't know what the error is. Any ideas? Does the table need to be locked or something?
James |
ADO RDD xHarbour | Armando,
OK, I just changed the command to DROP TABLE...and that worked. Problem solved.
Thanks,
James |
ADO RDD xHarbour | James:
Cool !
Regards |
ADO RDD xHarbour | Speed Test Results
Using the new ADORDD and a local drive.
Success at last. I have been able to import a large number of records from a DBF into a SQL table in an ACCESS database using the APPEND FROM command.
Appending 26,191 records with 31 fields from a DBF into an ACCESS table: 18 minutes.
Appending the same rec... |
ADO RDD xHarbour | James,
Maybe append is slow but other operations are very fast <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
ADO RDD xHarbour | James, Antonio,
Im back from holidays and Im glad to see that more people is using ADORDD.
New functionalities have been added by maromano and Ill give it a look asap.
Im using adordd with MySql and I dont have any speed issues.
Normally to import dbf files I use :
[code=fw:3au5yc9n]<div class="fw" id="{CB}" style="... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.