topic
stringlengths
1
63
text
stringlengths
1
577k
ADO RDD xHarbour
Welcome back AHF. I am excited to have your expertise available again. I like the COPY TO example. One concern I have is the HBRECNO field. I presume you need to first create the SQL table with the added HBRECNO field before running your code? James
ADO RDD xHarbour
James, No thats done by adordd. In ado_create the field defined as recno is taken care automatically so you dont need to care about it. The field will be always created with the name defined as default or to that table in adordd sets. If the field is defined already in the dbf structure and not as autoinc field it wil...
ADO RDD xHarbour
AHF, Thanks for that explanation. I tried your COPY TO method but it still took 16 minutes and 42 seconds. So, it is not significantly faster that APPEND FROM. I think the speed issue has to do with locking. One reason is that I found that you have to force locking on or the APPEND FROM will crash at some point (unl...
ADO RDD xHarbour
To put this APPEND FROM speed issue in perspective, if you need to import 1 million records it will take: 1000000/26000 = 38 X 18 minutes = 692 minutes/million or 692/60 minutes = 11.5 hours. If you rarely need to import records, then this is probably not a big issue. I do know some people on this forum have mentione...
ADO RDD xHarbour
James, [quote="James Bott":129lf2cw]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...
ADO RDD xHarbour
Kleyber, That may be an option. I downloaded it and will take a look. I did see this in another message thread, "It imports DBFs into MySQL or PostgreSQL databases" and since for testing I am using ACCESS right now it won't be helpful. I do think the ADORDD issue can be solved. I expect maybe it is doing a COMMIT af...
ADO RDD xHarbour
James: Maybe it's an Access problem. Why not use ADO only Regards
ADO RDD xHarbour
Armando, Thanks. I am using both ADO and ADORDD. I am posting the problems I come across so hopefully we can fix them in the ADORDD. If the ADORDD is going to be a drop-in replacement like other RDDs, then everything needs to be working. Otherwise, we need a bunch of IF/THENs in our source code so we can use DBFs or S...
ADO RDD xHarbour
I am trying to figure out how to use indexes. Can someone post a simple working example preferably using the Northwind.mdb? This would be very helpful, since I have had no luck getting an index to work. Below is what I have been trying to get working. I am trying to index on COUNTRY, but it is not working. James [co...
ADO RDD xHarbour
James, SET ADO TABLES INDEX LIST TO = expressions used to build queries with ORDER BY clause. Here you can even use sql expressions like ASC DESC CONVERT etc SET ADODBF TABLES INDEX LIST TO = standard clipper like expressions to enable functions like Indexkey() to work. These are the actual indexes you re using in yo...
ADO RDD xHarbour
[quote="James Bott":20p6wzbs]Kleyber, That may be an option. I downloaded it and will take a look. I did see this in another message thread, "It imports DBFs into MySQL or PostgreSQL databases" and since for testing I am using ACCESS right now it won't be helpful. I do think the ADORDD issue can be solved. I expect ...
ADO RDD xHarbour
AHF, OK I tried what I thought you were saying and it still doesn't work. That's why I was asking for a working example, because obviously I still have something wrong. It seems we have to make lots of changes with indexes to use SQL. Below is my modified code that is not working. James [code=fw:28hmd29c]<div class...
ADO RDD xHarbour
James, Try this: [code=fw:14kaz9kq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"adordd.ch"</span><br /><br />REQUEST ADOR...
ADO RDD xHarbour
AHF, Thanks for the reply. [quote:su66z4bs]I didnt test this myself because I dot have ACCESS right now[/quote:su66z4bs] Hmm, you don't need the ACCESS program as the ADO drivers are part of Windows. You can just use the Northwind.mdb (commonly available) or you can use the ADO functions to create an empty ACCESS da...
ADO RDD xHarbour
AHF, I tried your example and with a few changes got it working except for the temp index. Any ideas? James [code=fw:2uozvntb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// This is not working</span><br /><span style="color: #B900B9;">// data is natural order</span><br /><...
ADO RDD xHarbour
James, Glad to know thats working. Place this in your code and call it after open indexes to check area status. [code=fw:1novahpv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> areainfo<span style="color: #000000;">&#40;</span><span style="color: #000000...
ADO RDD xHarbour
James, [code=fw:11imh2vn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// This is not working</span><br /><span style="color: #B900B9;">// data is natural order</span><br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> FIELD->CITY <sp...
ADO RDD xHarbour
AHF, Below is the code I am using where the temp index isn't working. James [code=fw:homsp4lm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />Purpose &nbsp;: Test ADORDD indexing<br />Author &nbsp; : James Bott<br />Date &nbsp; &nbsp; : 8/4/2015<br />Company &nbsp;: In...
ADO RDD xHarbour
AHF, Here is the data you wanted regarding the temp index. I am using the same ADORDD version as you are. James 1: => CUSTOMERS NomeRDD: ADORDD ============================== RecNo RecCount BOF EOF 1 45 .F. .F. Índices em uso ...
ADO RDD xHarbour
AHF, The thought just came to me that the customers table in the ACCESS Northwind.mdb does not have the HBRECNO field (because it is a default file). Could that be the reason that the temp indexes aren't working? James
ADO RDD xHarbour
James, Without some autoinc field defined as recno results are unpredictable. It might be it.
ADO RDD xHarbour
Antonio F, OK, I exported the customer table from the SQL database to a DBF, dropped the table, then recreated the SQL table so the HBRECNO field would be created. And imported the records back in from the DBF. Then the temp index began working. Problem solved. Thanks for your help. James
ADO RDD xHarbour
James, Glad to know. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> By the way did you make all that with APPEND FROM or and COPY TO? When a table is created with adordd it checks automatically if recno field exists and if not creates it. When you use copy to from...
ADO RDD xHarbour
Antonio F, Yes, I did a COPY TO a dbf, then built the SQL table from the structure of the DBF (and I did know that the HBRECNO field would be added automatically). Then I did an APPEND FROM the dbf. Fairly simple now that I have the code written. I am wondering about these two lists: SET ADO TABLES INDEX LIST TO...
ADO RDD xHarbour
Antonio F, You asked previously about&#058; SET ADO FORCE LOCK ON I had a comment in my code that it was required, and you asked why. Well, I found that if you try to do an APPEND FROM with lots of records it will crash without the above statement. I had it crash once at 500 something records and another time at 1...
ADO RDD xHarbour
James, Please check 01_readme.pdf [quote:vb7r6kg3] A) SET ADO TABLES INDEX LIST TO …. ---------------------------------------------------- This Set is used by the SQL engine to build select with order by. Thus the fields must be separated by comma and it can include SQL functions or ASC DESC This Set cannot include C...
ADO RDD xHarbour
James, [quote="James Bott":6t3nw8el] Antonio F, You asked previously about&#058; SET ADO FORCE LOCK ON I had a comment in my code that it was required, and you asked why. Well, I found that if you try to do an APPEND FROM with lots of records it will crash without the above statement. I had it crash once at 500 s...
ADO RDD xHarbour
Antonio F, Thanks for the detailed explanation of the indexes. It helps a lot. I thought we were going to have to give up the FW functions, but it seems not. This is great news to me. James
ADO RDD xHarbour
Antonio F, [quote:3lf2bw2v]What do you mean by "memory and/or time"?[/quote:3lf2bw2v] Maybe I should have said RAM and timing. In the past I have had programs crash when they ran out of RAM. And also, the OS sometimes lags and the program is expecting something to be done that isn't so you get a error that isn't trap...
ADO RDD xHarbour
Antoino F, I forgot to mention that an UPDATE forces the disk buffer to be written to disk, so this the reason the update is so slow. If there is only an UPDATE after 100 records (or even 500) there is still probably (depending on the buffer's size) only one disk write, thus the great increase in speed. James
ADO RDD xHarbour
James, Unfortunately I haven't find any way to adordd copy to has enough speed to allow copy to from dbf to sql millions of records. It is really to slow. adordd copy to is good for copying a small set of records ( couple hundreds ) from or to dbfs or from sql to sql. In order to import big dbfs file to sql you can ...
ADO RDD xHarbour
Antonio F, Thanks for the update. I didn't see any mention of changing the commit frequency. Have you looked at that? I will be looking forward to the updated ADORDD. I have been working on tests here comparing the results of ADORDD vs DBFCDX drivers and I haven't found any problems yet (other than the APPEND speed...
ADO RDD xHarbour
James, In adordd we cant control commit frequency, as far as I know, with :addnew method. As soon as we move or add new record the previous its auto committed because ado auto calls :update(). Being other rdd than ado in source area the loop its controlled by that rdd and we cant do anything else. On the other hand ...
ADO RDD xHarbour
Antonio, [quote:18u2yb7o]If there is any way to get from the code block the char expression[/quote:18u2yb7o] Unfortunately no, unless we save it as a string value in advance
ADO RDD xHarbour
James, [quote:h7kgj66a]Yes, I did a COPY TO a dbf, then built the SQL table from the structure of the DBF (and I did know that the HBRECNO field would be added automatically). Then I did an APPEND FROM the dbf. Fairly simple now that I have the code written.[/quote:h7kgj66a] I forgot to mention that you can do it wit...
ADO RDD xHarbour
New version of ADORDD at <!-- m --><a class="postlink" href="https://github.com/AHFERREIRA/adordd.git">https://github.com/AHFERREIRA/adordd.git</a><!-- m --> Changes: Faster opening recordsets Recordsets are now opened by recno order when no index is active as any dbf Tables without auto inc fieldto be used as recno...
ADO RDD xHarbour
Hello Antonio F and others, I have a question about adordd, I want to understand better how adordd works. [code=fw:meyvfnow]<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="color: #00D7D7;">#incl...
ADO RDD xHarbour
Pieter, adordd its coded at usr rdd level so there isn't any translation into ado code. It is the default rdd that is replaced by adordd like ads rdd, dbfcdx rdd or any other rdd. All rdd table and index functions will work exactly the same. Nothing changes in your code. In adordd.prg for ex the REPLACE or Fieldput...
ADO RDD xHarbour
Antonio, Thank you:D. I think I understand the concept partially, but I also think there is still some things to learn for me. So is it true that usrrdd.lib and/or rdds.lib in the xharbour123/lib directory implement the rdd. If yes, what is then the difference between usrrdd.lib and adordd.lib? Are usrdd.lib and rdds...
ADO RDD xHarbour
Pieter, Im not a rdd expert at this level. May be Antonio Linares can explain it better. [quote:3cz1pmq7]So is it true that usrrdd.lib and/or rdds.lib in the xharbour123/lib directory implement the rdd. If yes, what is then the difference between usrrdd.lib and adordd.lib? Are usrdd.lib and rdds.lib written in C lang...
ADO RDD xHarbour
Antonio F, Before I spend time testing this, I thought I should ask. First, I thought we were not supposed to be able to use any functions in SQL indexes, but then I saw you mentioned using (x)Harbour functions such as DTOS(DATE). I am wondering if user-defined functions can be used? I have tried one and it is sorti...
ADO RDD xHarbour
James, [quote:1xfnqgq3]First, I thought we were not supposed to be able to use any functions in SQL indexes, but then I saw you mentioned using (x)Harbour functions such as DTOS(DATE). [/quote:1xfnqgq3] [code=fw:1xfnqgq3]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: ...
ADO RDD xHarbour
[quote="AHF":2ndtcw9g]Pieter, Im not a rdd expert at this level. May be Antonio Linares can explain it better. [quote:2ndtcw9g]So is it true that usrrdd.lib and/or rdds.lib in the xharbour123/lib directory implement the rdd. If yes, what is then the difference between usrrdd.lib and adordd.lib? Are usrdd.lib and rdds...
ADO RDD xHarbour
Antonio F, [code=fw:2kj5gnt0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//SQL  CAN BE USED ANY SQL FUNCTIONS MATCHING CLIPPER FUNCTIONS</span><br /><span style="color: #B900B9;">// WE DONT NEED THE CONVERSION FUNCTIONS IN SQL</span><br />SET ADO TABLES <span style="color: #...
ADO RDD xHarbour
James, [quote:22q5p10h]Are you saying that SQL can concatenate unlike data values automatically? Are unlike data values always converted to string, or could you add a date + 10 and get a date ten days after the date specified? (I'm not sure why you might want to do that, just wondering.) [/quote:22q5p10h] In order by...
ADO RDD xHarbour
Antonio F, Here is the index and the UDF. IDATE and DATE are two character fields. IDATE is in the format YYMM where it is the last two digits of the year (e.g. 15 for 2015). DATE is really day in the format DD. Like I said previously, icon3() just returns what you would get from DTOS( dDate ) when SET EPOCH TO 1980 ...
ADO RDD xHarbour
Antonio F, Here is how it can be solved using a database class (and adding a new field SDATE). [code=fw:19keonzj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Method</span> Save<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &n...
ADO RDD xHarbour
James, You can use If( in SELECT and in ORDER BY. SELECT field+IF( field1= ..., true expr, false expr) AS myfield FROM myTable ORDER BY myfield or SELECT field ORDER BY field+IF( field1= ..., true, false) You can also use CASE instead of IF. You can use also conversion functions such as CONVERT(.... or concatena...
ADO RDD xHarbour
Antonio F, Ok, thanks that is all very useful info. [quote:15jmk6w9]SELECT field ORDER BY field+IF( field1= ..., true, false)[/quote:15jmk6w9] So could I then convert this UDF: [code=fw:15jmk6w9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> icon3<span style=...
ADO RDD xHarbour
James, You have to try it with Mysql Workbench and then apply the correct expression into the app. I dont know if such literal expression is accepted in INDEX ON at the compile time you have to try it. My be you have to place it in a var and evaluated in INDEX ON In SET ADO DBF INDEX it would be ok. Please be aware...
ADO RDD xHarbour
Hello Antonio F, and other members. It is going well with the adordd implementation of my application. (I am using now a smaller application than the normal application, but it should be similar for the normal application). I got an error at this moment. Part of the log of the error: Application =========== ...
ADO RDD xHarbour
Pieter, What adordd version are you using? I would not take out ADS from your prgs I would use instead around the code: [code=fw:bga7je6t]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">IF</span> RDDSETDEFAUL<span style="color: #000000;">&#40;</span><span style="color: #...
ADO RDD xHarbour
Antonio F, Thank you:D. How can I see which version of ADORDD I have in the application? Something like MsgInfo(ADORDDVERSION()) maybe? I am looking forward to the new adordd. Pieter
ADO RDD xHarbour
Pieter, ADOVERSION()
ADO RDD xHarbour
MsgInfo(ADOVERSION()) gives: AdoRdd Version 1.170815/1
ADO RDD xHarbour
Pieter, There is a problem with open indexes but I dont now what. Do you have the tables and indexes opened in your error log? Can you post it ? If you dont you can use this code to check it. [code=fw:2xkxvpjo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</sp...
ADO RDD xHarbour
Antonio F, I have used your code of FUNCTION expalias() (I used memowrit() instead of SHOWMEMO()) [code=fw:2xgshdw5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />  <span style="color: #000000;">1</span>:    USERS                              NomeRDD: <span style="color: #000000;">ADORDD</span><br /> ...
ADO RDD xHarbour
Pieter, I would say that you are seeking without any index opened. What does aBasis?
ADO RDD xHarbour
Antonio F, [code=fw:2h59qzrz]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1132</span> &nbsp;Bound error: <span style="color: #000000;">array</span> access<br />&nbsp; &nbsp;Error <span style=...
ADO RDD xHarbour
Pieter, Called from DBFSEEK(1479) before adordd. Its not USE. You are seeking the table and no indexes are opened. The error occurs in [code=fw:33mr9urp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> ADOPSEUDO...
ADO RDD xHarbour
Antonio F, Oké, I think I have done what you suggested (see also my email). It looks like it is working well until Dbseek(). Pieter
ADO RDD xHarbour
RE: ADORDD and Memory Issues For this discussion I am talking about standard FWH code that was written for DBF files, since this is the reason for having an ADORDD. I assume that whenever a database is opened via ADORDD, that a recordset is created containing the entire database. Is that correct? I know that we have...
ADO RDD xHarbour
James, adordd is in big changes and will only read from table once when it opens it. You can also use with a query to limit the range of the set. After loading the set it only re read the table again when new additions by others are made. Next week Ill post a new version with big changes, much much faster, UDFs in i...
ADO RDD xHarbour
Antonio F. I look forward to all the new features and modifications. However, you are confirming my concerns. // with DBF RDD use customer // loads one record // with ADORDD use customer // loads the entire database So opening 20 databases with a DBF RDD loads only 20 records into memory. Opening 20 databases with ...
ADO RDD xHarbour
James, [quote:vwnnkaio]So opening 20 databases with a DBF RDD loads only 20 records into memory. Opening 20 databases with ADORDD loads 20 entire databases into memory. [/quote:vwnnkaio] Today memory its not a problem. Its cheap! 20 tables its not so much even to ADO memory management. But for sure for our kind of IS...
ADO RDD xHarbour
Hello Antonio F, I am making progress with my main program with ADORDD. But I got a problem with ' (apostrof) Do you think there is still a way to use ' (apostrof) in a program? Example testprogram USE CUSTOMER APPEND BLANK REPLACE FIRST WITH "Test'Pieter" Errorlog: Application =========== Path and ...
ADO RDD xHarbour
Pieter, Instead of: [code=fw:rlo5j4sz]<div class="fw" id="{CB}" style="font-family: monospace;">REPLACE FIRST WITH <span style="color: #ff0000;">"Test'Pieter"</span></div>[/code:rlo5j4sz] Please try: [code=fw:rlo5j4sz]<div class="fw" id="{CB}" style="font-family: monospace;">REPLACE FIRST WITH <span style="color: #f...
ADO RDD xHarbour
(1) REPLACE FIRST WITH "Test''Pieter" //gives Test'Pieter (2) //I think this ' is the same as my previous post. (I copied your code to my testapp) REPLACE FIRST WITH "Test'Pieter" Gives: Application =========== Path and name: C:\Pieter\LeerOmgevingXharbour\learn-database.exe (32 bits) Size: 2,781,696 bytes ...
ADO RDD xHarbour
Pieter, The second alternative is a escape \ + ' (take out the +)
ADO RDD xHarbour
Antonio F, Thank you. Yes that also works. Pieter
ADO RDD xHarbour
I use [] all the time to build filter strings and other cases where a single ' or " may be needed. Try [code=fw:2e209lur]<div class="fw" id="{CB}" style="font-family: monospace;"><br />REPLACE FIRST WITH <span style="color: #000000;">&#91;</span>Test<span style="color: #ff0000;">'Pieter]<br /></span></div>[/code:2e209l...
ADO RDD xHarbour
New version of adordd at <!-- m --><a class="postlink" href="https://github.com/AHFERREIRA/adordd.git">https://github.com/AHFERREIRA/adordd.git</a><!-- m --> Several small bugs corrected. SET ADO TABLES INDEX LIST TO not needed anymore. Now support for any clipper expression in index including UDFs Indexes, Scope, Fil...
ADO RDD xHarbour
[quote="AHF":v4tg5w1n]Enrico, James can you try new features.?[/quote:v4tg5w1n] I'm very sorry but I didn't tried your ADORDD yet and I haven't the time to try it at the moment. EMG
ADO RDD xHarbour
[quote="Gale FORd":2zsgtcni]I use [] all the time to build filter strings and other cases where a single ' or " may be needed. Try [code=fw:2zsgtcni]<div class="fw" id="{CB}" style="font-family: monospace;"><br />REPLACE FIRST WITH <span style="color: #000000;">&#91;</span>Test<span style="color: #ff0000;">'Pieter]<br ...
ADO RDD xHarbour
New adordd version <!-- m --><a class="postlink" href="https://github.com/AHFERREIRA/adordd.git">https://github.com/AHFERREIRA/adordd.git</a><!-- m --> 1) Some small bugs corrections, code and speed improvement. 2) NEW FEATURE : Works with deleted records just like any other dbf rdd Records are marked as deleted and ...
ADO RDD xHarbour
Antonio, please make definition of the local variables! C:\adordd\adordd.prg(1238) Warning W0001 Ambiguous reference: 'XBOOK' C:\adordd\adordd.prg(1247) Warning W0001 Ambiguous reference: 'ABOOKMARKS' C:\adordd\adordd.prg(1248) Warning W0001 Ambiguous reference: 'ABOOKMARKS' C:\adordd\adordd.prg(1248) Warning W0001...
ADO RDD xHarbour
Gunther, Done! Thanks
ADO RDD xHarbour
Antonio, Would you mind uploading the new version (with the LOCALs) declared to Github? As you know, unless they are declared they are PRIVATEs, so I don't want to do a lot of testing when PRIVATEs may be visible outside the RDD. I know, I could declare them myself, but then I would still have to retest when your vers...
ADO RDD xHarbour
Antonio, It also seems that your TRYADORDD.PRG file has not been updated as it is erroring out with 3 errors. And there are undeclared vars too. If would really help if you could provide in this test PRG, tests of all the new functions also. Otherwise each of us has to create test programs. James
ADO RDD xHarbour
James, You re right but now I havent the time to remake it. Ill try to do it as soon as I have the time. Thanks
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 --> Please check 01_readme.pdf because some things changed a bit. New features: Use path to create sql files and open with same path. slashes are change to underscor...
ADO RDD xHarbour
Antonio, there are still warnings on compiling! You should use es2 as errorlevel in compiler. Compiling 'C:\adordd\adordd.prg'... C:\adordd\adordd.prg(486) Warning W0001 Ambiguous reference: 'OCATALOG' C:\adordd\adordd.prg(487) Warning W0001 Ambiguous reference: 'OCATALOG' C:\adordd\adordd.prg(1906) Warning W0001 A...
ADO RDD xHarbour
Gunther, I dont know why didnt get those errors. Its corrected for next posted version. Meanwhile please alter in adordd.prg : C:\adordd\adordd.prg(1906) Warning W0001 Ambiguous reference: 'XVALUE' with cFieldName C:\adordd\adordd.prg(1922) Warning W0001 Ambiguous reference: 'XVALUE' with uInfo C:\adordd\adordd.prg(5...
ADO RDD xHarbour
adordd finished version at <!-- m --><a class="postlink" href="https://github.com/AHFERREIRA/adordd.git">https://github.com/AHFERREIRA/adordd.git</a><!-- m --> adordd is finished! I don't have plans to add any new functionalities to it. Its now working just like any other kind dbfcdx rdd and it allows you to port your...
ADO RDD xHarbour
Antonio, First of all congratulations for this huge job! I'm going to test it ASAP. Just a question: Is there any working example showing all (or most of all) features of your rdd? TIA,
ADO RDD xHarbour
Kleyber, Thanks. You have tryadordd but be advise that I didnt test it myself with these last versions, but should be a good guide. There arent any special features to show, it works just like dbcdx kind rdd. The best way to test it is to upload your tables compile and link adordd and run it. Please read 01_readme.p...
ADO RDD xHarbour
Thank you for your effort Antonio, I'll try it also as soon as possible.
ADO RDD xHarbour
Antonio, this error comes on different places in the code of adordd.prg. I tested with access and mssql. Error description: Error ADODB.Recordset/6 DISP_E_UNKNOWNNAME: OPEN Args: [ 1] = C SELECT `AUTO_INCREMENT` FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'adisc' AND TABLE_NAME = 'TABLE1' [ ...
ADO RDD xHarbour
Gunther, This routine returns the lastrec(). With access it can not error that because with engine = ACCESS its SELECT MAX--- you can check the code. As I informed previously I only tried it with Access but mainly with MySql. I suspect that with MsSql the syntax of SELECT ... FROM SCHEMA... its wrong. Do you know ...
ADO RDD xHarbour
Antonio, with Access i read this error: Error description: Error ADODB.Recordset/6 DISP_E_UNKNOWNNAME: OPEN Args: [ 1] = C SELECT * FROM TABLE1 ORDER BY HBRECNO [ 2] = O ADODB.Connection [ 3] = N 2 [ 4] = N 3 [ 5] = N 0 Stack Calls =========== Called from: => TOLEA...
ADO RDD xHarbour
Antonio, i found the equivalent for MSSQL in function ADORECCOUNT(nWA,oRecordSet): [code=fw:ebz6tl3g]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">IF</span> aAWData<span style="color: #000000;">&#91;</span> WA_ENGINE <span style="color: #000000;">&#93;</span> = <span style...
ADO RDD xHarbour
Gunther, Great! In ACCESS its also needed [code=fw:32j3ex94]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;cSql := <span style="color: #ff0000;">"SELECT MAX("</span>+<span style="color: #000000;">&#40;</span>ADO_GET_FIELD_RECNO<span style="color: #000000;">&#40;</span> aAWData<span style=...
ADO RDD xHarbour
Gunther I am just curious .. what are you trying to extract from the database .. a table structure, field attribute ? Rick Lipkin
ADO RDD xHarbour
Antonio, Rick! "SELECT IDENT_CURRENT('"+aAWData[WA_TABLENAME]+"')+1 AS AUTO_INCREMENT" i found in internet for MSSQL. Antonio, there are a error with ACCESS!!! [quote:nqrlv8wp]Error description: Error ADODB.Recordset/6 DISP_E_UNKNOWNNAME: OPEN Args: [ 1] = C SELECT * FROM TABLE1 ORDER BY HBRECNO [ 2] = O ADODB.Co...
ADO RDD xHarbour
Gunther, Strange here its ok Is the field HBRECNO in the table ? What is your SET ADO CACHESIZE TO... ?
ADO RDD xHarbour
Antonio, now i found that the .mdb is constructed but no tables inside!! -> Also the error comes from here. I use this code: [code=fw:3fpva3xa]<div class="fw" id="{CB}" style="font-family: monospace;">DbCreate<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"table1;"</span>+cPath+<span style="col...
ADO RDD xHarbour
Gunther, Those are left overs from trials. Take out ";cpath" you dot need it anymore. The database its auto created if not exist during connection. In fact if you verify the table was created in the database indicated in SET ADO DEFAULT DATABASE... Confirm?
ADO RDD xHarbour
Antonio, sorry, no tables! I test [code=fw:1sqcu213]<div class="fw" id="{CB}" style="font-family: monospace;">DbCreate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"table2;test2.mdb"</span>, ....<br />DbCreate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"table2;tes...
ADO RDD xHarbour
Gunther, Do it just like in clipper DbCreate( "table2,{...) Is SET ADO DEFAULT DATABASE TO TESTADORDD.MDB ? Isnt the table there instead ?
ADO RDD xHarbour
Antonio, please see my earlier post! All is ok now! Thanks for your great work!