messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2009-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Adolfo\":d9p9n4y9]\nMy class is also available.. see on the spanish forums.\nAdolfo[/quote:d9p9n4y9]\n\n Adolfo , can you direct to this your class ?\n\n Regards !", "time": "07:16", "topic": "Choosing SQL database ...", "username": "Rimantas" } ]
Choosing SQL database ...
[ { "date": "2009-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Adolfo\":khstwk44]Remember that DBF's are read completely from disk, so if you have a browse , you will have to read ALL the 10.000's records together with ALL its fields, and also all the supporting DBF's related with the main one.[/quote:khstwk44]\n\nAbsolutely not! Sorry, but it looks like you don't know of what you're speaking of.\n\nEMG", "time": "12:34", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":1avb49s7][quote=\"Adolfo\":1avb49s7]Remember that DBF's are read completely from disk, so if you have a browse , you will have to read ALL the 10.000's records together with ALL its fields, and also all the supporting DBF's related with the main one.[/quote:1avb49s7]\n\nAbsolutely not! Sorry, but it looks like you don't know of what you're speaking of.\n\nEMG[/quote:1avb49s7]\n\nEnrico..\n\nSO when you use a browse to look at a DBF, YOU DONT READ THE WHOLE DBF ?\nExplain it to me please... maybe I miss something\n\nFrom Chile\nAdolfo", "time": "13:00", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI am following this topic with many interest.\n\nAdolfo you can create a DBF or ADT (ads) table (file) with 1.000.000 records, then open and put it in a browse, the time for it is the same if you are opening a dbf with 100 records, then you can go to the last record or to the middle of the table and this don't take any time. Then you can ask for the table size (record) and you obtain this inmediatly, I don't expert in ADO like you but this is not easy with it, I think.\n\nBut yes I like SQL very much, it is really ease and flexible for this razon I use ADS (we have the both worlds), BUT YES AGAIN, this is really expensive, I hope in the future the progess of LETODB go in this direction, another think is to build a TCP layer to SQLite (like Real SQL Server)\n\nsaludos\n\nMarcelo", "time": "13:24", "topic": "Choosing SQL database ...", "username": "Marcelo Via Giglio" } ]
Choosing SQL database ...
[ { "date": "2009-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Adolfo\":1fz1lgxo]SO when you use a browse to look at a DBF, YOU DONT READ THE WHOLE DBF ?[/quote:1fz1lgxo]\n\nExactly. If you want to access one record you have to read only that record.\n\nEMG", "time": "13:35", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:nts5w8hl]>>...With DBFs you only have to read 10 records across the network, then you can display the browse.\n\nJames.. are you absolutely sure about this.... ?\nRemember that DBF's are read completely from disk, so if you have a browse , you will have to read ALL the 10.000's records together with ALL its fields, and also all the supporting DBF's related with the main one.\nWith SQL .. only the fields you want to show, then you can LOAD whatever you want... so NET traffic is reduced dramatically....[/quote:nts5w8hl]\n\nYes, I am positive. With DBFs you only ever have one record in memory at a time. With a browse you read each record then display it and continue until all the visible records are displayed.\n\nThe only time you would ever read all records is if you were doing some kind of processing of all records (like finding a total, maybe), but still only one record is in memory at any time.\n\nWith SQL you work with recordsets which as you know are basically arrays. They may contain one or more records. If you do a SELECT *... then you ARE going to read all the records into memory (into the recordset) at one time. If you then browse the recordset you are displaying records from the recordset instead of reading them from disk like when you using a DBF. The browse display will be very slightly faster with a recordset but probably not detectable by the user.\n\nNote that using scopes you could create an array from a DBF and use it just like a recordset. Using scopes you are only reading the records that are within the scope. So, this would probably be very similar in performance to SQL.\n\nSQL will have an advantage when you are selecting records that you do not have an index for, thus you cannot use scopes. In this case the server reads all the records an only sends those within the parameters of the SELECT statement. When using a DBF you would have to read all the records across the network (but you would still only have one record in memory at a time).\n\n[quote:nts5w8hl]In the sample I do... \nselect rut,nombre,field1,field2,field3 from clientes\nand \"clientes\" TABLE has 35 FIELDS, when I dobleclick the record, I do a new RECORDSET containing all the methods of the Complete recordset, but only the present record (with all its fields) to edit, append, delete... etc etc[/quote:nts5w8hl]\n\nSQL does have the advantage of reading only select fields. You cannot do this with DBFs.\n\n[quote:nts5w8hl]Regarding TADOBASE...\nI have implemented Paging with that, no matter if the DB has it or not. I read ::nPageSize records each time, and if you see the Methods, I can control when each \"miniRecordset\" ends to load another...[/quote:nts5w8hl]\n\nI still do not understand exactly how you are doing this. Do you load a new miniRecordset with each keystroke of an incremental search (which contains just enough records to fill the browse)?\n\n[quote:nts5w8hl]AS I STATED...\nI CAN do incremetal searching with ADO and SQL, the TEST shows it.[/quote:nts5w8hl]\n\nI think is agreed that it can be done, but the question was, can it be done without reading all the records in the table into a recordset?", "time": "14:08", "topic": "Choosing SQL database ...", "username": "James Bott" } ]
Choosing SQL database ...
[ { "date": "2009-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Marcelo.. \n\nThanks for answering...\n\nPersonally I think ADS is a good product, but very expensive to buy and to maintain, dedicated servers, the imposibility to hire a host with it, so little base knowledge in comparison with MYSQL, SQLITE, MS SQL, ORACLE, POSTGRES etc etc.and a performance not superior to any SQL engine, cause I don't think you can compare it to MYSQL SPEED or SQL SERVER.\n\nNow if you see the test I uploaded, or the class (TADOBASE ) referenced in the spanish forum, you can have a little range of all ADO festures combined to the power of SQL.\n\nPD: You are invited to try it, comment and suggest, Im going to have a copy with latest changes available to the ones who want to use it.\n\n\nJAMES\n\n\"Yes, I am positive. With DBFs you only ever have one record in memory at a time. With a browse you read each record then display it and continue until all the visible records are displayed.\"\n\nSO you have to READ EVERY record ( to build a browse ), then reading the whole DBF with all its fields.. or Am i wrong. Now the size of traffic in that operation is bigger than having only the seleted fields send by the SQL server ina forma of a RECORDSET.\n\nIn mi case... for incremental searching, I already have the recordset in memory, so I do the search in it. When you want o look at the whole RECORD, I call a function that retrieves the record with all its fields ( is a RECORDSET with only one record in it )\nAbout Paging... If you see the class, I use as many recordsets as needed to navigate thru the recorset.\n\n ::nTotalPages:=Round(::nCount/::nPageSize,0) \n\nand I keep track of what page I'm on...\nSee, the source menu.prg, function PAGES_CLIENTES(3) option 3\n\nHope I clarified this.\n\nFrom Chile\nAdolfo", "time": "14:30", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Adolfo,\n\n[quote:3jp841ea]>\"Yes, I am positive. With DBFs you only ever have one record in memory at a time. With a browse you read each record then display it and continue until all the visible records are displayed.\"\n\nSO you have to READ EVERY record ( to build a browse ), then reading the whole DBF with all its fields.. or Am i wrong. Now the size of traffic in that operation is bigger than having only the seleted fields send by the SQL server ina forma of a RECORDSET.[/quote:3jp841ea]\n\nNo, for a browse displaying 10 records, you only read those ten VISIBLE records, one at a time. Read and display the first record, then read and display the second one, etc. You stop after reading the 10th record.\n\n[quote:3jp841ea]In mi case... for incremental searching, I already have the recordset in memory[/quote:3jp841ea]\n\nWhich recordset, the whole table?\n\nJames", "time": "14:41", "topic": "Choosing SQL database ...", "username": "James Bott" } ]
Choosing SQL database ...
[ { "date": "2009-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":3mdkikx4]Adolfo,\n\n[quote:3mdkikx4]>\"Yes, I am positive. With DBFs you only ever have one record in memory at a time. With a browse you read each record then display it and continue until all the visible records are displayed.\"\n\nSO you have to READ EVERY record ( to build a browse ), then reading the whole DBF with all its fields.. or Am i wrong. Now the size of traffic in that operation is bigger than having only the seleted fields send by the SQL server ina forma of a RECORDSET.[/quote:3mdkikx4]\n\nNo, for a browse displaying 10 records, you only read those ten VISIBLE records, one at a time. Read and display the first record, then read and display the second one, etc. You stop after reading the 10th record.\n\n[quote:3mdkikx4]In mi case... for incremental searching, I already have the recordset in memory[/quote:3mdkikx4]\n\nWhich recordset, the whole table?\n\nJames[/quote:3mdkikx4]\n\nNo James.. not the whole table.. just the recordset ( select id, name, address from clientes) not ( select * from clientes ) because I have tables with more than 50 fields, most of them codes or ids to other tables. So in mi case I try to show the records on which I can do the search, and of course those who are present in any of the keys of the table.\n\nXbrowse does that...? reads only the records that fits in the browse and then reads the others ?.. didm't know that.. sorry\n\nAdolfo", "time": "14:47", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:18nch0cb]dedicated servers, the imposibility to hire a host with it, so little base knowledge in comparison with MYSQL, SQLITE, MS SQL, ORACLE, POSTGRES etc etc.and a performance not superior to any SQL engine, cause I don't think you can compare it to MYSQL SPEED or SQL SERVER.[/quote:18nch0cb]\n\nWhat Adolfo is referring to here is for hosted web apps with hosted data. But, you can have your web app being hosted and connecting to your ADS server over the Internet (i.e. non hosted data). It works just as well. The reference Adolfo is making is the typical Web-App and very popular using php-MySql. So most hosting companies already have MySQL with PHP available for your webapp and hosted data. I think that if I was to write an app that will never be used on a local lan but that will always be used on a browser connected via Internet to a hosted server... I'd probably use php-MySql. Not fwh. I'm not saying that you can't write it with fwh. It's a matter of what's best for the job.\n\nAs it turns out, all my customers work their db in a local lan with their own server (as I'm sure most of you). They only want to share small portions of the data (such as pathology reports and other lab results) over the web. So for that, I write a php app that queries the very same ADS server being accessed by the fwh apps on the lan.\n\nMS-SQL and Oracle are more expensive than ADS. AFIK -MYSQL is not really free when used commercially. But pricing is not the point. If you really want to talk pricing, then you will have to ask for a local quote. What's expensive for some, might not be for other apps. My point is that ISAM is better than SQL for some tasks. Adolfo's sample proves it. And that ADS does both; ISAM and SQL, and triggers, and referencial integrity, and \"on-line\" backups, and views, and stored procedures, and table -or- field encryption, and field constraints, and transactions, and replication, ... let me catch my breath for a minute...., and allows Internet connections (AIS), and SQL scripting, and -did I mention ISAM?, and has clients for .net, Delphi Tdecendand class, (x)harbour RDD, VO RDD, PHP, ODBC, ADO, DBI, Perl, MDAC, OLE DB. I ran out of breath again.\n\nI understand how some people might be turned off by ISAM -DBFs or ADTs. I avoid mentioning \"DBFs\" to my customers. But that is only due to perception and not real facts. Like I said, there are advantages with client-server technology and SQL. But if you can have that and also keep ISAM. Trust me, it is you now, who has the advantage.\n\nAbout pricing for the client-server version, we can talk as a separate subject. But, yes Adolfo does the right thing by bringing it up, it is a consideration you'd have to keep in mind.\n\nNow I'm talking too much, gota go!\n\n\n\n\nReinaldo.", "time": "15:16", "topic": "Choosing SQL database ...", "username": "reinaldocrespo" } ]
Choosing SQL database ...
[ { "date": "2009-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Adolfo,\n\n[quote:wxmk0vvi]No James.. not the whole table.. just the recordset ( select id, name, address from clientes) not ( select * from clientes ) because I have tables with more than 50 fields, most of them codes or ids to other tables.[/quote:wxmk0vvi]\n\nOK, by \"whole table\" I meant all the records of the table. Granted in your case you are only reading certain fields, which means the network traffic will be less, but still way more network traffic than browsing a DBF.\n\nExample: Assuming we have a 10 record browse (using a DBF) and did an incremental search that took 3 keystrokes, then the most records we would have to read is 3 x 10 = 30.\n\nUse a SQL recordset we have to read all the records in the table regardless of how many keystrokes it takes to find the seach item. For small table this may not be much of an issue, but with large tables you might have to read a million records.\n\nEven if we look at the issue considering fields it is going to be more network traffic using a recordset. Lets say there are 100 fields per record and you are only using 3 for the recordset, you still have to read 3 fields x 1 million records = 3 million fields.\n\nWith the DBF browse finding the record in 3 keystrokes, you have to read (at most) 30 records x 100 fields or 3000 fields. This is way less network traffic than SQL.\n\nHere is another point that came to mind. I don't think any records actally exist in the application's memory when using DBFs. The data remains in the disk cache. When you read a field, like customer->name, it is read from the disk cache. There is no built-in recordset or array of data in the application.\n\nRegards,\nJames", "time": "15:23", "topic": "Choosing SQL database ...", "username": "James Bott" } ]
Choosing SQL database ...
[ { "date": "2009-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":2kb6ocxy]With the DBF browse finding the record in 3 keystrokes, you have to read (at most) 30 records x 100 fields or 3000 fields.[/quote:2kb6ocxy]\n\nWhy 30? It seems to me that the number of records to read depends on the actual data.\n\nEMG", "time": "15:55", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\n>Why 30? It seems to me that the number of records to read depends on the actual data.\n\nUpon rethinking this it would actually be 40 counting the first display of records before the first keystroke.\n\nSo the first display is 10 records. After the first keystroke you jump to the first record starting with that key and read the next 10 records. Then the second key and the next 10 records, and the third key and the next 10 records. That is a total of 40 records. \n\nThere would always be a maximum of 40 records read regardless of the size of the database.\n\nWe are assuming that it requires 3 keystrokes for this discussion. Granted it would take less records if you found the item in less than 3 keystrokes or more records if it required more keystrokes. We are also assuming you are using an index and doing a seek, not skipping through the records sequentially looking for a match.\n\nRegards,\nJames", "time": "19:36", "topic": "Choosing SQL database ...", "username": "James Bott" } ]
Choosing SQL database ...
[ { "date": "2009-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "I don't understand. If I'm not missing something, 3-keys indexed incremental searching should requires the read of a maximum of 3 records, plus the read of the index tree, of course. Or am I wrong?\n\nEMG", "time": "00:45", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\n>I don't understand. If I'm not missing something, 3-keys indexed incremental searching should requires the read of a maximum of 3 records\n\nI am also considering the browse showing 10 records. So the first keystroke uses the index to find the first match, then that record is displayed as the first record in the browse. Then the browse will skip through 9 more records and display each one (until the browse is full). The second keystroke causes the next 10 records to be read and displayed. Is that more clear?\n\nJames", "time": "01:35", "topic": "Choosing SQL database ...", "username": "James Bott" } ]
Choosing SQL database ...
[ { "date": "2009-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, thank you. You are right.\n\nEMG", "time": "08:47", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "James..\nEnrico\n\nI'm preparing a test with a Network Traffic tool we have here, in order to analyze the traffic in both cases, a browse of a dbf with 300.00 records and a Mysql Table of the same size.\nMy problem is trying to isolate only the traffic for both cases, port 3306 is completely checked, but I have problems with the Network access to the File server. Once I got this working I'll post my results here.\nI think this weekend, with noone here in the office ( we are almost 30 Pc's online ) I'll do the test. Besides I'll have to stop all the services which uses the net card, and my cache tool.\n\nI'll do the same keystrokes in the Xbrowse to show 4 differents clinets, and record what's going on in the net.\n\nI Hope it helps to clarify me what really happens in both cases.\n\nFrom Chile\nAdolfo", "time": "12:36", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Sounds interesting. Thank you, Adolfo.\n\nEMG", "time": "12:58", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico... \n\nThere will be 4 tests..\n\nDBF, SQL, DBF plus index, SQL plus index.. would be nice to know how the use of an index will affect the traffic... don't you think so ?\n\nFrom Chile\nAdolfo", "time": "13:38", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Adolfo;\n\nPlease, also compare speed. Go to the bottom of the list by pressing Cntrl-End, then press and keep pressed the uparrow key for a while. Watch the records scroll. After a while, Go to the top, do the same in the opposite direction. Then try incremental search. \n\nAlso, please test both using a server on the LAN or a single computer with local data.\n\n\nThank you,\n\n\n\nReinaldo.\n\nPs. Please send me the code. I'd really like to see how to use your class. Thank you very much: reinaldo punto crespo en gmail.", "time": "13:45", "topic": "Choosing SQL database ...", "username": "reinaldocrespo" } ]
Choosing SQL database ...
[ { "date": "2009-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Adolfo\":3elvucwp]There will be 4 tests..\n\nDBF, SQL, DBF plus index, SQL plus index.. would be nice to know how the use of an index will affect the traffic... don't you think so ?[/quote:3elvucwp]\n\nYes.\n\nEMG", "time": "15:30", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Adolfo,\n\n[quote:ixgdpgdb]DBF, SQL, DBF plus index, SQL plus index.. would be nice to know how the use of an index will affect the traffic... don't you think so ?[/quote:ixgdpgdb]\n\nI'm not sure what you are testing for. You cannot do an incremental search without an index.\n\nI do not know exactly how a recordset is searched--I am guessing by scanning for a match. This does mean that it has to look at a lot of records before it finds a match.\n\nWith a indexed DBF, a binary search is done on the index then only the found record is read from disk. This should be much faster.\n\nHowever, in the SQL recordset case, the entire table (all the records) has to be read from disk into the recordset before any search can be made. This will add significantly to the total time from selecting and displaying the browse to finding the match. With the DBF only enough records to fill the browse have to be read before the browse is displayed so the overall search time will probably be less. My point here is that you have to measure the entire time including the load time to get a realistic comparison of the time it will take the user to find the match.\n\nRegards,\nJames", "time": "16:56", "topic": "Choosing SQL database ...", "username": "James Bott" } ]
Choosing SQL database ...
[ { "date": "2009-10-29", "forum": "FiveWin for Harbour/xHarbour", "text": "James... \n\nI'll will measure data traffic (from opening the DBF til the browse is completely full ), then each keystroke till the record is found, using incremental search, then the same for ADO.\n\nI'll will record times, and bytes received and transmited to the ports related to each case, 3306 when MYSQL is used and (at least 4 ports ) when Accesing a Windosw 2003 FILE server, and Linux Fedora 10 and Samba\n\nAny suggestions will be appreciated.\n\nGoing to use a Switch ( intelligent with data management ) and a Port Sniffer or Net Traffic Service.\n\nFrom Chile\nAdolfo", "time": "21:53", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-10-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Adolfo,\n\nI don't sure about the test, because SAMBA works like a file server then, it's different to a Database server, I think when you open a DBF with index, the index will load in memory and you will see in the network traffic, this is defferent when use DATABASE SERVER (MySQL, Postgres, ADS, etc), because all the work is in the server and only the result is transmited to the client, but please public your results.\n\nRegards\n\nMarcelo", "time": "02:23", "topic": "Choosing SQL database ...", "username": "Marcelo Via Giglio" } ]
Choosing SQL database ...
[ { "date": "2009-10-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Marcelo...\n\nThat's the idea...\n\nMeasure the traffic in both situations, DBF's and ADO with similar Tables, size, n° of records and fields.\nI Will put times, and number of bytes transmited and received in both cases. I made early tests with NETWORK PROBE 3.0 a very reliable network tool, freeware. and I have an administrated switch also. in order to check both results.\n\nAny hint or idea will be welcome.\n\nFrom chile\nAdolfo", "time": "12:36", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-10-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Adolfo,\n\nMarcelo is right about the index loading. If the index is complex it could be similar in size to a recordset containing only a few fields. However, if the index contains only one field and the recordset contains lots of fields, (which is more typical) the index would be much smaller.\n\nWe will all be anxiously awaiting your test results.\n\nRegards,\nJames", "time": "14:46", "topic": "Choosing SQL database ...", "username": "James Bott" } ]
Choosing SQL database ...
[ { "date": "2009-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi everybody..\n\nI did the test this weekend. Got the results ( with some surprises...)\n\nI'm going to tabulate them in an excel sheet, and upload it in an hour.\n\nFrom Chile\nAdolfo", "time": "14:57", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi everybody.\n\nHere you have the results for the test I did.\n\nClient PC\nPentium 4\n1 gb Ram\nXp Professional SP2\nEthernet DLink 100mb\n\nSwitch\nTENDA 24 + 2 Web Administrable\n\nMysql Server\nAthlon Xp\n2 Gb Ram\nLinux Fedora Core 8\nMysql 5.0.01\nEthernet Realtek 100MB\n\nFile Server \nPentium 4\n4 Gb Ram\nWindows 2003 Server\nEthernet Dlink 1000 Gb ( but connected to a 100MB Switch port )\n\n\nMethodology.\n\nI Started Network Probe and reset counters on my Switch. \nOn each test, I reset all counters on NP and the switch, did the test, reboot, and reset counters again.\nI repeated each test 3 times, so every value of bytes and seconds is the average of 3 tests, which were not very different one from each other.\nI use 2 diferent DBFS, which I uploaded to my Mysql Server with NAVICAT MYSQL, I did an IMPORT of data, both structures are similar, and content is identical.\n\nThe test.\n\n3 Different cathegories of test, Times, bytes recieved and bytes sent.\nFirst the elapsed times since I open the dbf or Recordset, and how much does xBrowse take to show the data. The second one, is identical, but when you do it the second time. It means, open the dbf, show the xBrowse, close it, open the dbf and show the xbrowse again... and take these times ( here dbf's in cache are almost intantaneous ).\n\nBytes Recieved. Here i did 4 routines.\n1.- Open the recordset or dbf, and fill the xbrowse, took the traffic for the ports involved in the process, 3306 for Mysql and 137, 138, 139, 445 for DBF. ( which by the way were the only ones with actual traffic as seen on the network tool , and on the switch )\n2.- The same, but this time I write something to make the incremental search work and have some extra traffic.\n3.- Idem as N°2, but this time I wrote 3 letters, backspace 3 times, and 3 new keystrokes, so I \"move\" the record pointer to the midle, then to the end.\n4.- Very simple, just 3 times PgDown, then 3 times pageup to end were I started\n\nThe loading of a complete record to show it, is instantaneous in both cases ( less than 0,0001 second) so I discarded it.\n\nI used 2 dbf's, one with 400.000 records, and the other with only 27.000, and repeat the test for both in the same conditions\n\n\nYou can donwload the results from here\n\n[url:1y633nud]http&#58;//200&#46;72&#46;140&#46;34/privado/adobase/TEST%20ADO&#46;xls[/url:1y633nud]\n\n\nConclusions\nADO's is slower when getting data, and also consumes more bandwith when you first call the xbrowse,but... thats all, after the job is done, no more net traffic is present. If you work with a dbf browse and navigate thru it , after some little searches or movements, you would have more bytes recieved than ADO. A 400.000 ado Recordset will take up to 4 seconds to retrieve, but a 27.000 recordset, less than a second. Well theres plenty of asumptioms to do with the results. Have a look at them and share your opinions.\n\nAny questions on the test... just do them\n\nHere's the main part of the code for 1 of the groups of test ( Clientes with 27000 records )\n\n[code=fw:1y633nud]<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;\">\"Ado.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"inkey.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xBrowse.ch\"</span><br /><br /><span style=\"color: #00C800;\">Static</span> oWnd<br /><br /><span style=\"color: #B900B9;\">//-------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Public</span> lMysql:=.F.<br />Request DBFFPT, DBFCDX<br />RDDSETDEFAULT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"DBFCDX\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />SET OPTIMIZE <span style=\"color: #0000ff;\">ON</span><br />SET EPOCH <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">1920</span><br />SET DATE FORMAT <span style=\"color: #ff0000;\">\"dd/mm/yyyy\"</span><br />SET WRAP <span style=\"color: #0000ff;\">ON</span><br />SET DELETED <span style=\"color: #0000ff;\">ON</span><br /><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">79</span> <span style=\"color: #0000ff;\">MDI</span> ;<br />   <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Test Traffic\"</span> <span style=\"color: #0000ff;\">Menu</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oMenu<br /><br />  <span style=\"color: #0000ff;\">MENU</span> oMenu <span style=\"color: #000000;\">2007</span><br />       <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"ADO\"</span><br />       <span style=\"color: #0000ff;\">MENU</span><br />             <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Ado Test\"</span>    <span style=\"color: #0000ff;\">ACTION</span> AdoTest<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />       <span style=\"color: #0000ff;\">ENDMENU</span><br />       <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"DBF\"</span><br />       <span style=\"color: #0000ff;\">MENU</span><br />             <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"DBF Test\"</span>    <span style=\"color: #0000ff;\">ACTION</span> DBFTest<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />       <span style=\"color: #0000ff;\">ENDMENU</span><br />       <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Exit\"</span><br />       <span style=\"color: #0000ff;\">MENU</span><br />             <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"End\"</span>         <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />       <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><br />  <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><span style=\"color: #00C800;\">Return</span> oMenu<br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> Conectar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> Retorno:=.F.<br /><span style=\"color: #00C800;\">Local</span> rs, oErr,oCs<br /><span style=\"color: #00C800;\">Local</span> odbcli<br /><span style=\"color: #00C800;\">Local</span> cSelect<br /><span style=\"color: #00C800;\">Public</span> oCn<br /><br />   <span style=\"color: #00C800;\">TRY</span><br />      oCn:= CreateObject<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADODB.Connection\"</span> <span style=\"color: #000000;\">&#41;</span><br />      oCs:= <span style=\"color: #ff0000;\">\"DRIVER={MySQL ODBC 5.1 Driver};  SERVER=192.168.0.1; DATABASE=test; UID=adolfo; PWD=300966\"</span><br />      oCn:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span>oCs<span style=\"color: #000000;\">&#41;</span><br />      Retorno:=.T.<br />   CATCH oErr<br />      MSGAlert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Error : No se tiene acceso al servidor de MYSQL \"</span> + CRLF + <span style=\"color: #ff0000;\">\"por favor verifique conexion a red o que el servidor este funcionando\"</span>, <span style=\"color: #ff0000;\">\"Error: \"</span> + oErr:<span style=\"color: #000000;\">Operation</span> + <span style=\"color: #ff0000;\">\" -> \"</span> + oErr:<span style=\"color: #000000;\">Description</span> <span style=\"color: #000000;\">&#41;</span><br />      Retorno:=.F.<br />   END<br /><br /><span style=\"color: #00C800;\">Return</span> Retorno<br /><br /><br /><span style=\"color: #B900B9;\">//-------------------------------------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//----------  Mysql Browse ------------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//-------------------------------------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> AdoTest<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> oWndMain:=WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> lExit:=.F.<br /><span style=\"color: #00C800;\">Local</span> oRcs<br /><span style=\"color: #00C800;\">Local</span> cSelect:=<span style=\"color: #ff0000;\">\"select RUT,RAZON,DIRECCION from CLIENTES order by RAZON\"</span><br /><span style=\"color: #00C800;\">Local</span> oErrorAdo<br /><br /><span style=\"color: #00C800;\">Local</span> TBO:=<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">Local</span> TAO:=<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">Local</span> TDO:=<span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #00C800;\">Local</span> TBX:=<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">Local</span> TAX:=<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">Local</span> TDX:=<span style=\"color: #000000;\">0</span><br /><br /><br /><span style=\"color: #00C800;\">If</span> !Conectar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br />  TBO:=Seconds<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />      oRcs:=TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ADODB.recordset\"</span><span style=\"color: #000000;\">&#41;</span><br />      oRcs:<span style=\"color: #000000;\">CursorLocation</span>:= adUseClient<br />      oRcs:<span style=\"color: #000000;\">LockType</span>      := adLockOptimistic<br />      oRcs:<span style=\"color: #000000;\">CursorType</span>    := adOpenDynamic<br />      oRcs:<span style=\"color: #000000;\">CacheSize</span>     := <span style=\"color: #000000;\">30</span><br />      oRcs:<span style=\"color: #000000;\">PageSize</span>      := <span style=\"color: #000000;\">30</span><br /><br />      <span style=\"color: #00C800;\">TRY</span><br />        oRcs:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span>cSelect,oCn<span style=\"color: #000000;\">&#41;</span><br />      CATCH<br />        <span style=\"color: #00C800;\">FOR</span> EACH oErrorAdo IN oCn:<span style=\"color: #000000;\">Errors</span><br />            ShowError<span style=\"color: #000000;\">&#40;</span>oErrorAdo<span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">NEXT</span><br />      END<br />      oRcs:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />  lMysql:=.T.<br /><br />  TAO:=Seconds<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  TDO:=TAO - TBO<br /><br />  TBX:=Seconds<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Font</span> oFontBold  <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Arial\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">15</span> BOLD<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd02 <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">79</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"MYSQL XBrowse Incremental Search\"</span> <span style=\"color: #0000ff;\">STYLE</span> nOr<span style=\"color: #000000;\">&#40;</span> WS_CAPTION, WS_VISIBLE, WS_SYSMENU <span style=\"color: #000000;\">&#41;</span><br /><br />        oBrw:=TxBrowse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>oWnd02<span style=\"color: #000000;\">&#41;</span><br />        oBrw:<span style=\"color: #000000;\">nTop</span>:=<span style=\"color: #000000;\">0</span><br />        oBrw:<span style=\"color: #000000;\">nLeft</span>:=<span style=\"color: #000000;\">0</span><br />        oBrw:<span style=\"color: #000000;\">nMarqueeStyle</span> := MARQSTYLE_HIGHLROW<br />        oBrw:<span style=\"color: #000000;\">nColDividerStyle</span> := LINESTYLE_BLACK<br />        oBrw:<span style=\"color: #000000;\">nRowDividerStyle</span> := LINESTYLE_BLACK<br />        oBrw:<span style=\"color: #000000;\">lColDividerComplete</span> := .T.<br />        oBrw:<span style=\"color: #000000;\">l2007</span>        :=.T.<br />        oBrw:<span style=\"color: #000000;\">lAutoSort</span>    :=.T.<br /><br />        oBrw:<span style=\"color: #000000;\">bClrSelFocus</span> := <span style=\"color: #000000;\">&#123;</span> | | <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">16777215</span>, <span style=\"color: #000000;\">9539840</span>  <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />        aClrRow           := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, <span style=\"color: #000000;\">14737602</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, <span style=\"color: #000000;\">16777215</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />        oBrw:<span style=\"color: #000000;\">bClrStd</span>      := <span style=\"color: #000000;\">&#123;</span>|| aClrRow<span style=\"color: #000000;\">&#91;</span> oBrw:<span style=\"color: #000000;\">KeyNo</span> % <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />        oBrw:<span style=\"color: #000000;\">nHeaderLines</span> := <span style=\"color: #000000;\">1</span><br />        oBrw:<span style=\"color: #000000;\">nDataLines</span>   := <span style=\"color: #000000;\">1</span><br />        oBrw:<span style=\"color: #000000;\">lHScroll</span>     := .F.<br />        oBrw:<span style=\"color: #000000;\">lVScroll</span>     := .T.<br />        oBrw:<span style=\"color: #000000;\">lFooter</span>      := .T.<br />        oBrw:<span style=\"color: #000000;\">bClrFooter</span>   := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span>CLR_HBLUE,CLR_WHITE<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />        oBrw:<span style=\"color: #000000;\">bKeyDown</span>     :=<span style=\"color: #000000;\">&#123;</span>| nKey, nFlags | MyKeyDown<span style=\"color: #000000;\">&#40;</span>nKey, nFlags, oBrw<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />        oBrw:<span style=\"color: #000000;\">bKeyChar</span>     :=<span style=\"color: #000000;\">&#123;</span>| nKey, nFlags | MyKeyChar<span style=\"color: #000000;\">&#40;</span>nKey, nFlags, oBrw<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />        oBrw:<span style=\"color: #000000;\">SetAdo</span><span style=\"color: #000000;\">&#40;</span>oRcs<span style=\"color: #000000;\">&#41;</span><br />        oBrw:<span style=\"color: #000000;\">bSeek</span>        := <span style=\"color: #000000;\">&#123;</span> | c | SeekIncremental<span style=\"color: #000000;\">&#40;</span>UPPER<span style=\"color: #000000;\">&#40;</span>c<span style=\"color: #000000;\">&#41;</span>,oRcs,<span style=\"color: #ff0000;\">\"RAZON\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />        oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />        oWnd02:<span style=\"color: #000000;\">oClient</span> := oBrw<br /><br />        oBrw:<span style=\"color: #000000;\">SetFoCus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />      SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd02 <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\" \"</span> <span style=\"color: #000000;\">2007</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> MSGITEM oBrw:<span style=\"color: #000000;\">oSeek</span> <span style=\"color: #0000ff;\">OF</span> oWnd02:<span style=\"color: #000000;\">oMsgBar</span> ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"BUSQUEDA DE DATOS\"</span> ;<br />      <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">350</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_RED <span style=\"color: #0000ff;\">FONT</span> oFontBold<br /><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd02 <span style=\"color: #0000ff;\">MAXIMIZED</span> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span>  oWnd02 := <span style=\"color: #00C800;\">nil</span>, lExit := .T. , .T.<span style=\"color: #000000;\">&#41;</span> ;<br />             <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span>TAX:=Seconds<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> , TDX:=TAX-TBX , .T. <span style=\"color: #000000;\">&#41;</span><br /><br />    StopUntil<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span>|| lExit<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">If</span> oWndMain != <span style=\"color: #00C800;\">nil</span><br />       oWndMain:<span style=\"color: #000000;\">Show</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />       SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">Endif</span><br /><br />    oRcs:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br /> MsgAlert<span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span>TDO,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#41;</span> + CRLF + STR<span style=\"color: #000000;\">&#40;</span>TDX,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> MyKeyDown<span style=\"color: #000000;\">&#40;</span> nKey, nFlags, oBrw<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> MyKeyChar<span style=\"color: #000000;\">&#40;</span> nKey, nFlags, oBrw <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">Case</span><br />      <span style=\"color: #00C800;\">Case</span> nKey == K_ENTER<br />           ShowRecord<span style=\"color: #000000;\">&#40;</span>lMysql<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">Endcase</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> ShowError<span style=\"color: #000000;\">&#40;</span>oError<span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Descripción : \"</span>  + oError:<span style=\"color: #000000;\">Description</span>      + CRLF + ;<br />                  <span style=\"color: #ff0000;\">\"Error Nativo : \"</span> + Str<span style=\"color: #000000;\">&#40;</span>oError:<span style=\"color: #000000;\">NativeError</span><span style=\"color: #000000;\">&#41;</span> + CRLF + ;<br />                  <span style=\"color: #ff0000;\">\"Número Error : \"</span> + Str<span style=\"color: #000000;\">&#40;</span>oError:<span style=\"color: #000000;\">Number</span><span style=\"color: #000000;\">&#41;</span>      + CRLF + ;<br />                  <span style=\"color: #ff0000;\">\"Origen : \"</span>       + oError:<span style=\"color: #000000;\">Source</span>           + CRLF + ;<br />                  <span style=\"color: #ff0000;\">\"Estado SQL : \"</span>   + oError:<span style=\"color: #000000;\">SQLState</span>  <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//-------------------------------------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//----------  DBF   Browse ------------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//-------------------------------------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> DbfTest<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> oWndMain:=WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> lExit:=.F.<br /><br /><span style=\"color: #00C800;\">Local</span> TBO:=<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">Local</span> TAO:=<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">Local</span> TDO:=<span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #00C800;\">Local</span> TBX:=<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">Local</span> TAX:=<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">Local</span> TDX:=<span style=\"color: #000000;\">0</span><br /><br />  TBO=Seconds<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />  Use P:\\TEST\\clientes <span style=\"color: #0000ff;\">Alias</span> Cli<br />  Set Order <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">1</span><br />  DbGoTop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />  lMysql:=.F.<br /><br />  TAO:=Seconds<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  TDO:=TAO - TBO<br /><br /><br />  TBX:=Seconds<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Font</span> oFontBold  <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Arial\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">15</span> BOLD<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd02 <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">79</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"DBF XBrowse Incremental Search\"</span> <span style=\"color: #0000ff;\">STYLE</span> nOr<span style=\"color: #000000;\">&#40;</span> WS_CAPTION, WS_VISIBLE, WS_SYSMENU <span style=\"color: #000000;\">&#41;</span><br /><br />        oBrw:=TxBrowse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>oWnd02<span style=\"color: #000000;\">&#41;</span><br />        oBrw:<span style=\"color: #000000;\">nTop</span>:=<span style=\"color: #000000;\">0</span><br />        oBrw:<span style=\"color: #000000;\">nLeft</span>:=<span style=\"color: #000000;\">0</span><br />        oBrw:<span style=\"color: #000000;\">nMarqueeStyle</span> := MARQSTYLE_HIGHLROW<br />        oBrw:<span style=\"color: #000000;\">nColDividerStyle</span> := LINESTYLE_BLACK<br />        oBrw:<span style=\"color: #000000;\">nRowDividerStyle</span> := LINESTYLE_BLACK<br />        oBrw:<span style=\"color: #000000;\">lColDividerComplete</span> := .T.<br />        oBrw:<span style=\"color: #000000;\">l2007</span>        :=.T.<br />        oBrw:<span style=\"color: #000000;\">lAutoSort</span>    :=.T.<br /><br />        oBrw:<span style=\"color: #000000;\">bClrSelFocus</span> := <span style=\"color: #000000;\">&#123;</span> | | <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">16777215</span>, <span style=\"color: #000000;\">9539840</span>  <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />        aClrRow           := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, <span style=\"color: #000000;\">14737602</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, <span style=\"color: #000000;\">16777215</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />        oBrw:<span style=\"color: #000000;\">bClrStd</span>      := <span style=\"color: #000000;\">&#123;</span>|| aClrRow<span style=\"color: #000000;\">&#91;</span> oBrw:<span style=\"color: #000000;\">KeyNo</span> % <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />        oBrw:<span style=\"color: #000000;\">nHeaderLines</span> := <span style=\"color: #000000;\">1</span><br />        oBrw:<span style=\"color: #000000;\">nDataLines</span>   := <span style=\"color: #000000;\">1</span><br />        oBrw:<span style=\"color: #000000;\">lHScroll</span>     := .F.<br />        oBrw:<span style=\"color: #000000;\">lVScroll</span>     := .T.<br />        oBrw:<span style=\"color: #000000;\">lFooter</span>      := .T.<br />        oBrw:<span style=\"color: #000000;\">bClrFooter</span>   := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span>CLR_HBLUE,CLR_WHITE<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />        oBrw:<span style=\"color: #000000;\">bKeyDown</span>     :=<span style=\"color: #000000;\">&#123;</span>| nKey, nFlags | MyKeyDown<span style=\"color: #000000;\">&#40;</span>nKey, nFlags, oBrw<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />        oBrw:<span style=\"color: #000000;\">bKeyChar</span>     :=<span style=\"color: #000000;\">&#123;</span>| nKey, nFlags | MyKeyChar<span style=\"color: #000000;\">&#40;</span>nKey, nFlags, oBrw<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />        <span style=\"color: #B900B9;\">// oBrw:SetRdd()</span><br />        Add Column <span style=\"color: #0000ff;\">To</span> oBrw <span style=\"color: #00C800;\">DATA</span> Cli->Rut<br />        Add Column <span style=\"color: #0000ff;\">To</span> oBrw <span style=\"color: #00C800;\">DATA</span> Cli->Razon<br />        Add Column <span style=\"color: #0000ff;\">To</span> oBrw <span style=\"color: #00C800;\">DATA</span> Cli->Direccion<br /><br /><br />        oBrw:<span style=\"color: #000000;\">bSeek</span>        := <span style=\"color: #000000;\">&#123;</span>|c| DbSeek<span style=\"color: #000000;\">&#40;</span> Upper<span style=\"color: #000000;\">&#40;</span> c <span style=\"color: #000000;\">&#41;</span> ,.T.<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />        oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />        oWnd02:<span style=\"color: #000000;\">oClient</span> := oBrw<br /><br />        oBrw:<span style=\"color: #000000;\">SetFoCus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />      SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd02 <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\" \"</span> <span style=\"color: #000000;\">2007</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> MSGITEM oBrw:<span style=\"color: #000000;\">oSeek</span> <span style=\"color: #0000ff;\">OF</span> oWnd02:<span style=\"color: #000000;\">oMsgBar</span> ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"BUSQUEDA DE DATOS\"</span> ;<br />      <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">350</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_RED <span style=\"color: #0000ff;\">FONT</span> oFontBold<br /><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd02 <span style=\"color: #0000ff;\">MAXIMIZED</span> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span>  oWnd02 := <span style=\"color: #00C800;\">nil</span>, lExit := .T. , .T.<span style=\"color: #000000;\">&#41;</span> ;<br />             <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span>TAX:=Seconds<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,TDX:=TAX-TBX , .T. <span style=\"color: #000000;\">&#41;</span><br /><br />    StopUntil<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span>|| lExit<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">If</span> oWndMain != <span style=\"color: #00C800;\">nil</span><br />       oWndMain:<span style=\"color: #000000;\">Show</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />       SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">Endif</span><br /><br />    MsgAlert<span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span>TDO,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#41;</span> + CRLF + STR<span style=\"color: #000000;\">&#40;</span>TDX,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    Close All<br /><br />    SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /> </div>[/code:1y633nud]\n\nFrom Chile \nAdolfo", "time": "16:23", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi.\n\nI'd like to see the SeekIncremental() function code as well, please?\n\nReinaldo.", "time": "17:20", "topic": "Choosing SQL database ...", "username": "reinaldocrespo" } ]
Choosing SQL database ...
[ { "date": "2009-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Adolfo\":19yv8f74]ADO's is slower when getting data, and also consumes more bandwith when you first call the xbrowse,but... thats all, after the job is done, no more net traffic is present.[/quote:19yv8f74]\n\nThis is expected. The slowness in getting data is exactly the problem. But it's not an ADO problem. It's the SQL way.\n\nEMG", "time": "18:43", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico...\n\nPaging does a good trick when retrieving data is involved... both on the server ( because the DB and the ADO client supports PAGES ) or by prg code, for instance, I get a 30 items browse and I takes 0,00001 second to get filled, instead of the 4 seconds for the 400.000 items in the test table.\n\nNow after a 10 minutes browsing the same DBF, I got 35 mb traffic, while with ADO... nothing.\n\nReinaldo..\n\nThis 15 lines do the trick....\n\n[code=fw:2p8yw7v4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> SeekIncremental<span style=\"color: #000000;\">&#40;</span>cBuscar,oRcs,cOrden<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> nLen:=Len<span style=\"color: #000000;\">&#40;</span>cBuscar<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">STATIC</span> nLenAnt<br />   <span style=\"color: #00C800;\">DEFAULT</span> nLenAnt:=<span style=\"color: #000000;\">0</span><br /><br />   <span style=\"color: #00C800;\">IF</span> Len<span style=\"color: #000000;\">&#40;</span>cBuscar<span style=\"color: #000000;\">&#41;</span>><span style=\"color: #000000;\">1</span><br />      <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>nLenAnt>nLen,oRcs:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span><br />      oRcs:<span style=\"color: #000000;\">Find</span><span style=\"color: #000000;\">&#40;</span> cOrden + <span style=\"color: #ff0000;\">\" like '\"</span>+cBuscar+<span style=\"color: #ff0000;\">\"*'\"</span>,,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">ELSE</span><br />      oRcs:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">IF</span> !Empty<span style=\"color: #000000;\">&#40;</span>cBuscar<span style=\"color: #000000;\">&#41;</span><br />         oRcs:<span style=\"color: #000000;\">Find</span><span style=\"color: #000000;\">&#40;</span> cOrden + <span style=\"color: #ff0000;\">\" like '\"</span>+cBuscar+<span style=\"color: #ff0000;\">\"*'\"</span>,,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">ENDIF</span><br />   <span style=\"color: #00C800;\">ENDIF</span><br />   nLenAnt:=nLen<br /><br /><span style=\"color: #00C800;\">RETURN</span> !<span style=\"color: #000000;\">&#40;</span>oRcs:<span style=\"color: #000000;\">Eof</span> .OR. oRcs:<span style=\"color: #000000;\">Bof</span><span style=\"color: #000000;\">&#41;</span></div>[/code:2p8yw7v4]\n\nNow you have tons of info in the web related to ADO, which helps us a lot to do \"things\" we can't do or are too difficult with plain SQL\n\nFrom Chile\nAdolfo", "time": "20:01", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "I'm not sure if you already did, but would you please point again to that thread where you publish your tado class?\n\nThank you,\n\n\n\nReinaldo.", "time": "20:11", "topic": "Choosing SQL database ...", "username": "reinaldocrespo" } ]
Choosing SQL database ...
[ { "date": "2009-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "OK, if I am reading the data properly, in all tests it took more network traffic to get to the end of the search result using a recordset than using a DBF (although not much of a difference). A further conclusion is that if the database was 10 times larger there would be ten times the network traffic using a recordset and NO more network traffic using a DBF.\n\nI will also point out that in this case, if the database was smaller that a recordset might require less traffic than the DBF.\n\nThis test does confirm that only the records needed for the browse display are loaded when a DBF is used--not the entire database.\n\nI suppose we can assume that the time to achieve the search result is relative to the size of the network traffic, but we don't know what that relationship is. As Adolfo stated, a 400000 record recordset loads in only 4 times the time of a 27000 record recordset. One would expect it to take 15 times as long (400000/27000 = 14.8 ), so there are other network issues that affect load time in addition to recordset size.\n\nIt would have been nice to have the times for the tests also.\n\nAlso, keep in mind that the record size and the total size of the fields in the recordset will affect the results (and the comparison).\n\nSo, in general, the larger the database the slower it will be to find a record using a recordset than a DBF. However, if the user needs to lookup lots of records a recordset may be faster. One also needs to decide if the user will even notice the time differences. They will notice 4 seconds vs 1 second but probably will not notice 1 sec vs 1/4 sec.\n\nAnother point to consider is that applications usually have a number of different databases (tables) of different record sizes and numbers of records, so choosing which database type (SQL or DBF) is not a simple matter size one may be faster in some situations and the other faster in other situations.\n\nOn a slightly different topic, I'm not sure about this, but isn't a recordset static--if another user updates a record then the recordset does not reflect that change? If true, this could be an issue to be concerned about with frequently changing databases and if a user keeps the browse running for long periods of time. DBF browsing always retrieves the record from disk when the record is displayed.\n\nThanks for doing this test Adolfo.\n\nRegards,\nJames", "time": "20:29", "topic": "Choosing SQL database ...", "username": "James Bott" } ]
Choosing SQL database ...
[ { "date": "2009-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"reinaldocrespo\":1udxrw82]I'm not sure if you already did, but would you please point again to that thread where you publish your tado class?\n\nThank you,\n\n\n\nReinaldo.[/quote:1udxrw82]\n\nReinaldo\n\nHere you have the post.\nDownload it, try it, comment it \n\n[url:1udxrw82]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=17178[/url:1udxrw82]\n\n\nFrom Chile\nAdolfo", "time": "22:35", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Adolfo\":9dsm6qv6]Paging does a good trick when retrieving data is involved...[/quote:9dsm6qv6]\n\nSorry, but paging can't be achieved using standard SQL, that was my earlier objection.\n\nEMG", "time": "22:54", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":2pqqeijs][quote=\"Adolfo\":2pqqeijs]Paging does a good trick when retrieving data is involved...[/quote:2pqqeijs]\n\nSorry, but paging can't be achieved using standard SQL, that was my earlier objection.\n\nEMG[/quote:2pqqeijs]\nEnrico.. download my class.\n\nSee the example... \nSee methods PgUp,PageDown,FirstPage,LastPage... a minimal modification on Skip Method, and you have PAGING, using standard SQL thru ADO ( although ADO does nothing but create the Recordset ), you can see how I build the select that does the \"magic\"\n\nSee the example, Menu Item \"Mantenciones\", Option \"PAGINADO 1*1\"\n\nThat's how I Emplemented IT\n\nFrom Chile\nAdolfo", "time": "23:56", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "You are using LIMIT clause that is NOT standard SQL.\n\nEMG", "time": "08:52", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":tua78e50]You are using LIMIT clause that is NOT standard SQL.\n\nEMG[/quote:tua78e50]mmm\nyep.. you are rigth.. but you have the equivalent in.\n\nMysql= Select * from clientes limit 10\nSql Server= select top 10 from clientes\nOracle=select * from cliente where rownum <= 10\nPostgress=select * from clientes limit 10\nSybase= set rowcount 10; select * from clientes\nDB2=select * from clientes fetch 10 first 20 rows only\n Select * from clientes where RN between 10 and 20 \n\nso.. although is not \"STANDARD\" sql you have the equivalent in ALL main dbs'.. now you are done... tou can do paging with them... well not in STANDARD sql, but paging. <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> \n\nFrom Chile\nAdolfo", "time": "12:29", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Ok. But this was exactly the point. We can't do fast incremental searching using SQL in an engine-independent way. SQL was been designed to be a \"query-language\" not for the modern interactive applications.\n\nEMG", "time": "12:41", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":2mckhnyv]Ok. But this was exactly the point. We can't do fast incremental searching using SQL in an engine-independent way. SQL was been designed to be a \"query-language\" not for the modern interactive applications.\n\nEMG[/quote:2mckhnyv]\n\n Enrico ,\n\n Something I can't understand - ADODb have .Find( cExpr ) method , where cExpr = \"myField = 'MyVar' \" . What hinder to do something like MyIncremSearch( cField, cVar ) function or method ? You can pass literal cExpr = cField + \"=\" + cVar . And cVar you can add incrementally . And that wil be independent from any SQL server - that it's ADO DB ... It's easy to adopt to any browse with ADO recordsets .\n\n Just my 2 cents .. <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\n Regards !", "time": "20:20", "topic": "Choosing SQL database ...", "username": "Rimantas" } ]
Choosing SQL database ...
[ { "date": "2009-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "You have to load a recordset before ADO can do its magic. The problem is exactly this loading time.\n\nEMG", "time": "21:00", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":23ofo4hg]You have to load a recordset before ADO can do its magic. The problem is exactly this loading time.\n\nEMG[/quote:23ofo4hg]\n\n In one project today I have 2 DBF's tables of making of workers . The header is ~ 100 K records and second - ~ 7 millions records . As you can see - heading line have about 60 - 80 lines of making . I'm using ordscope for second table and that is working fine . But ... then opening this MDI child window with two browses it tooks some time - from 5 to 15 sec ... At this time I didn't tried with SQL , because I'm rewriting this parts for SQL and after some it will be ready . But I'm believing that after some tuning I can achieve good performance with SQL ... Why ? The second browse is on the seconf folder tab . So with SQL I'll open recordset only for needful heading line , not all DBF as with ordscoping . The amount of network traffic will be smaller , the recordset depends only for needful data ...", "time": "21:24", "topic": "Choosing SQL database ...", "username": "Rimantas" } ]
Choosing SQL database ...
[ { "date": "2009-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Rimantas;\n\nThat's really good.\n\nPerhaps you'll be so kind as to show both code samples with performance description once you have it working with sql.\n\nThank you,\n\n\n\nReinaldo.", "time": "21:39", "topic": "Choosing SQL database ...", "username": "reinaldocrespo" } ]
Choosing SQL database ...
[ { "date": "2009-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rimantas\":y2b11uw1]But ... then opening this MDI child window with two browses it tooks some time - from 5 to 15 sec ...[/quote:y2b11uw1]\n\nSo you have something wrong in your code, nothing more.\n\nEMG", "time": "21:54", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Rimantas,\n\n[quote:13q715r7]Why ? The second browse is on the second folder tab . So with SQL I'll open recordset only for needful heading line , not all DBF as with ordscoping . [/quote:13q715r7]\n\nI'm not sure what you are saying above, but if you think ordscope is reading the entire database just to display those records within the scope, this is not true as Adolfo's test has shown. In fact, unless the browse is longer than all the records in the workorder, the browse will load less records than a recordset. The browse will only read as many records as needed to fill the browse.\n\nI'm not trying to say you shouldn't use SQL but you should know the differences between SQL and DBFs so you can make an informed decision.\n\nRegards,\nJames", "time": "21:58", "topic": "Choosing SQL database ...", "username": "James Bott" } ]
Choosing SQL database ...
[ { "date": "2009-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":344mt26h]Rimantas,\n\n[quote:344mt26h]Why ? The second browse is on the second folder tab . So with SQL I'll open recordset only for needful heading line , not all DBF as with ordscoping . [/quote:344mt26h]\n\nI'm not sure what you are saying above, but if you think ordscope is reading the entire database just to display those records within the scope, this is not true as Adolfo's test has shown. In fact, unless the browse is longer than all the records in the workorder, the browse will load less records than a recordset. The browse will only read as many records as needed to fill the browse.\n\nI'm not trying to say you shouldn't use SQL but you should know the differences between SQL and DBFs so you can make an informed decision.\n\nRegards,\nJames[/quote:344mt26h]\n\n I'm talking about this situation that at first I must OPEN the 2 dbfs with indexs - and that tooks amount of time . After that all is working OK . In mdichild is folder with 2 tabs - in first browse with heading dbf , in the 2-nd browse making . Changing tabs I'm setting on/of ordscope for dbfs - that is working fine and with good speed . Image - with SQL that will be one big recordset as for 1-st dbf and nothing for 2-nd browse . Second browse will get data only on that time , then you will push 2-nd tab of folder and will transfer recordset of 60-80 records form SQL . You are avoiding a big amount data transfer at a FIRST TIME ( openning ) , because you aren't openning a big ~ 7 mln record dbf with a big CDX file with 5 index tags inside ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\n I'm not comparing - better or not with DBFs or SQLs ... That is a waste of time . Both techiques have owns + and - . And you can get a good result with both - simply you will find needful solution in any situation ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> That is my point of view . After some test I can say that increment searching is working fine as I wroted for Enrico - ado db techique is powerfull and easy maintaining thing . After reviewing ADORDD I can say that ussual ADO recordset techique is better - you can use that in more flexible way . \n\n Regards !", "time": "07:56", "topic": "Choosing SQL database ...", "username": "Rimantas" } ]
Choosing SQL database ...
[ { "date": "2009-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Adolfo\":ydb2xznw]\n\nHere you have the post.\nDownload it, try it, comment it \n\n[url:ydb2xznw]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=17178[/url:ydb2xznw]\n\n\nAdolfo[/quote:ydb2xznw]\n\n Adolfo , \n\n Perfect class ... <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> Thank you !\n\n With best regards !", "time": "08:02", "topic": "Choosing SQL database ...", "username": "Rimantas" } ]
Choosing SQL database ...
[ { "date": "2009-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rimantas\":q7spu41a]I'm talking about this situation that at first I must OPEN the 2 dbfs with indexs - and that tooks amount of time .[/quote:q7spu41a]\n\nOpening a DBF with indexes doesn't require any time. And the content of the DBF is irrelevant (ie. it doesn't make any differences to open an empty DBF or a million records DBF).\n\n[quote=\"Rimantas\":q7spu41a]ado db techique is powerfull and easy maintaining thing .[/quote:q7spu41a]\n\nADO is without a doubt a good common interface to databases but here we are speaking about the query, that is not part of ADO. If Adolfo uses LIMIT clause in his query then he's losting compatibility with the databases which not support it. This is a fact.\n\nEMG", "time": "11:35", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":3uizrumn][quote=\"Rimantas\":3uizrumn]I'm talking about this situation that at first I must OPEN the 2 dbfs with indexs - and that tooks amount of time .[/quote:3uizrumn]\n\nOpening a DBF with indexes doesn't require any time. And the content of the DBF is irrelevant (ie. it doesn't make any differences to open an empty DBF or a million records DBF).\n\nEMG[/quote:3uizrumn]\n\n If open DBFs with indexes in network enviroment - then you will see the difference of time . I can't agree in this situation . In clipper times , when most servers was FILE Servers as Novell , then the diff wasn't visible . But MS Wind 2003 server is working in other mannier . Some users PC are in other building and exist 2 routes betwen PC and server . Opening application you can see diff of time ... Maybe I'm not true , maybe that is the problem of network , but from experience I can say that in MS wind servers networks the more reords in dbfs then you can feel the diff of openning time ... \n\n Regards !", "time": "15:07", "topic": "Choosing SQL database ...", "username": "Rimantas" } ]
Choosing SQL database ...
[ { "date": "2009-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rimantas\":3tzmyto1]from experience I can say that in MS wind servers networks the more reords in dbfs then you can feel the diff of openning time ...[/quote:3tzmyto1]\n\nIt doesn't make sense. Opening a file does not require to read its content. Please try a sample in your network that only does\n\nUSE YOURDBF\n\nand then another one that opens the indexes too. The slowness in opening could be caused by something else in your code.\n\nEMG", "time": "16:00", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":kiycb7an][\nIt doesn't make sense. Opening a file does not require to read its content. Please try a sample in your network that only does\n\nUSE YOURDBF\n\nand then another one that opens the indexes too. The slowness in opening could be caused by something else in your code.\n\nEMG[/quote:kiycb7an]\n\n It seems that we talking about different things ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> That it's a waste of time ... \n\n Regards !", "time": "19:32", "topic": "Choosing SQL database ...", "username": "Rimantas" } ]
Choosing SQL database ...
[ { "date": "2009-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rimantas\":9gqxnz7g]It seems that we talking about different things ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->[/quote:9gqxnz7g]\n\n <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\n[quote=\"Rimantas\":9gqxnz7g]That it's a waste of time ...[/quote:9gqxnz7g]\n\nI don't think so. If you can't do the test I propose just say \"I can't do it\".\n\nEMG", "time": "19:36", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Rimantas,\n\nI just did a test here on a peer-to-peer network and here are the times to open DBFs of different sizes.\n\nFirst test\n100 records = 70 milliseconds\n1 million records = 110 milliseconds\n\nRepeat test\n100 records = 60 ms\n1 million records = 50 ms\n\nSo, you can see there is no significant difference in the time it takes to open a DBF no matter what the size.\n\nI can provide my test code if you wish.\n\nRegards,\nJames", "time": "20:37", "topic": "Choosing SQL database ...", "username": "James Bott" } ]
Choosing SQL database ...
[ { "date": "2009-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello James,\n\nplease send me the code. I would be fine if we could establish a reference value table with test results from different networks. So if we install a program on the costumer side we could first ran the network-test-software to check if all is ok. \n\nSQL\n\nI had an internet application (booking system) where I used a sql server. The server was not my own server it was provided by the hosting company (discountasp).\nBut I changed the application from sql to mdb because mdb was much faster for this purpose and I use mdb the dbase way 1 table per mdb database.\nSpeed is very good.\n\nThe same I noticed when I used dotnetnuke for my webpages. Till version 2 the database was mdb then dotnetnuke changed and we had to use SQL server.\nBut speed since then was not as good anymore. \nI think it depends always on the purpose for what you use the database. \nFor example our tax-law says that you have to provide your data in ASCI or dbase format. So if I would use SQL I always have to make an export tool. As I have dbase I can provide my original files.\nAlso security is relative. In SQL you have one file if this is corrupt then all your data is lost. You can delete with on click a whole SQL server. \nI had much work to keep the server always going. But as I say it depends on the purpose.\nProgramming is always at the end 0 or 1 and SQL has a good marketing. \nBest regards,\nOtto", "time": "21:22", "topic": "Choosing SQL database ...", "username": "Otto" } ]
Choosing SQL database ...
[ { "date": "2009-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":1zc95j9s][quote=\"Rimantas\":1zc95j9s]It seems that we talking about different things ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->[/quote:1zc95j9s]\n\n <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\n[quote=\"Rimantas\":1zc95j9s]That it's a waste of time ...[/quote:1zc95j9s]\n\nI don't think so. If you can't do the test I propose just say \"I can't do it\".\n\nEMG[/quote:1zc95j9s]\n\n It seems that I wasn't right ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> Enrico , I was talking about the time from \"click\" button to open mdichild with folder and 2 browses . The browses are very complex , they are related to others dbfs , I'm using own relation function in codeblock . Something like that : { || myfind( \"MACHINES\", OPERS->MACH_ID, \"SHORT_MACH\", nIndexForSearch ) } , which return \"SHORT_MACH\" field value from \"MACHINES\" dbf and other many things . Because are many records , it seems that browse something is stopping ... Open of DBFs it's fast . Excuse me , I was wrong . So I was misleading this discusion ... Sorry ... <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: --> I did something like James test and then all clear ups ...\n\n Regards !", "time": "21:36", "topic": "Choosing SQL database ...", "username": "Rimantas" } ]
Choosing SQL database ...
[ { "date": "2009-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "No problem, Rimantas.\n\nEMG", "time": "21:41", "topic": "Choosing SQL database ...", "username": "Enrico Maria Giordano" } ]
Choosing SQL database ...
[ { "date": "2009-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Otto\":2p9fgmo8]\nAlso security is relative. In SQL you have one file if this is corrupt then all your data is lost. You can delete with on click a whole SQL server. \nI had much work to keep the server always going. But as I say it depends on the purpose.\nProgramming is always at the end 0 or 1 and SQL has a good marketing. \nBest regards,\nOtto[/quote:2p9fgmo8]\n\nOtto.\nSecurity IS NOT relative. SQL is MUCH MORE secure than dbf's in all ways.\nFor DBF's you need an shared directory, seen by any PC on the net, that's enough for having any or all dbf's, cdx's erased.. or opened with any DBF utility, even Excel. ( ADS is the exception )\nSQL is not. You need administrative rigths to enter any server. Second you never give administrative rigths to the aplication, you create a special user to have access thru the aplication with only the rigths you need to have.\nSQL is not only ONE file ( depends on the DB), but is much more resistant to corruption than DBF's, BECAUSE IS A SERVER, you can also get changes back whenever you wanted, erase a whole day of data and have it like it was yesterday ( for example ), you have server logs to determine which changes were made. On the other hand...there's plenty of discussions on SQL speeds in the web, the worst are by far, those based on WINDOWS.\nI uploaded my MYSQL server 2 years ago in my LINUX FEDORA CORE 7 server... and there it is.. running.. and running... and running.. no worms, DOS attacks, virus, trojans etc. Imagine, it is also the firewall for my Windows 2003 server, because WIN can't be facing the NET without checking it at least every 2 days... that's a routine I don't have with LINUX.\n\nFrom Chile \nAdolfo", "time": "21:48", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Adolfo,\n\nBe honest \n>you can also get changes back whenever you wanted\nIf you say “you” you mean a specialist an administrator.\n\nIf there is a problem with a dbase file I say please open the explorer and copy file A from the backup folder to your data folder.\n\nI did much work with SQL SERVER and VB.NET. But I am glad to have FIVEWIN and dBase.\nI don’t know what kind of software you produce. The database depends on that.\nWhat kind of software do you develop?\n\nIn my case most of the customers have 2 WS and one file server. There is no need for a database server in this case. \n\n\n>For DBF's you need an shared directory, seen by any PC on the net, that's enough for having any or all dbf's, cdx's erased.. or opened with any DBF utility, even Excel. ( ADS is the exception )\n\nYou can work with your password on your tables on a SQL Server. In practice it is the same as with your dbf-files in a folder.\n\nMaybe you are save as long as you install all the service packs and the setup of the server is correct. Administrator is a profession. But not every SQL server is setup by a professional. This is much work. As always after every SP you have to change the setup etc. .\n\nThe Lifetime Cost - a total of all costs you have for a software product like ours would be much higher if I would use SQL.\n\nPlease google:\nHacking an SQL Server Ergebnisse 1 - 10 von ungefähr 3.030.000 für Hacking an SQL Server.\nsql server down Ergebnisse 1 - 10 von ungefähr 15.000.000 für sql server down\nsql server Troubleshooting \nsql server Performance Problems Ergebnisse 1 - 10 von ungefähr 8.990.000 für sql server Performance Problems\netc.\n\nI don’t understand why there are so many pages full with performance problems, server down, troubleshooting?\n\nBest regards,\nOtto", "time": "22:35", "topic": "Choosing SQL database ...", "username": "Otto" } ]
Choosing SQL database ...
[ { "date": "2009-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:g2dbbjr7]>you can also get changes back whenever you wanted\nIf you say “you” you mean a specialist an administrator.[/quote:g2dbbjr7]\n\nYES...me. If I Use SQL .. I have to know how to do this... If you work with DBF, at least you should know how to use DBU. Don't you?\n\n[quote:g2dbbjr7]You can work with your password on your tables on a SQL Server. In practice it is the same as with your dbf-files in a folder.[/quote:g2dbbjr7]\n\nIMPOSSIBLE....As a good ADMINISTRATOR and DEVELOPER.... never work with the administrator user , create a work user without all privileges... or you log into a linux box as ROOT?... In DBF case... your son playing in you PC can erase the folder with no problems at all..... <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \"In practice it is the same as with your dbf-files folder \" <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\n[quote:g2dbbjr7]Maybe you are save as long as you install all the service packs and the setup of the server is correct. Administrator is a profession. But not every SQL server is setup by a professional. This is much work. As always after every SP you have to change the setup etc. .[/quote:g2dbbjr7]\n\nI've never installed a service pack in LINUX....( always use final releases ) there the problem is not SQL... is the SO... maybe MICRO$OFT.\n\nWhen you have a hosting....you do nothing of these. Just uploaded my DB, and use it from all my customers locations.\n\n[quote:g2dbbjr7]The Lifetime Cost - a total of all costs you have for a software product like ours would be much higher if I would use SQL.[/quote:g2dbbjr7]\n\nYes. SQL is not for all kind of software.\n\n[quote:g2dbbjr7]I don’t understand why there are so many pages full with performance problems, server down, troubleshooting?[/quote:g2dbbjr7]\n\nMainly because is so widely used by so many kind of users (from students, to IT pro )... now if you seek within these pages most of them are related to MICRO$OFT products and SO. Also remember that there at least 7 main brands of sql servers... MS, Mysql, Oracle, Postgress, Sybase, DB2, SQLITE (wich is more used than you think since is a embeded SQL engine )... so the number of actual users and developers is HUGE....\n\nFinally... XHB,FWH and Mysql is a very good combination.\n\nFrom Chile\nAdolfo", "time": "12:47", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Adolfo,\nare you kidding.\nI know that you are capable of.\nI mean “you” in the sense of John Doe. \n\nHer all the systems I know have WINDOWS installed. Therefore I can’t say anything about \nLINUX. \nBest regards,\nOtto", "time": "15:56", "topic": "Choosing SQL database ...", "username": "Otto" } ]
Choosing SQL database ...
[ { "date": "2009-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Otto\":1km3cb6w]Hello Adolfo,\nare you kidding.\nI know that you are capable of.\nI mean “you” in the sense of John Doe. \n\nHer all the systems I know have WINDOWS installed. Therefore I can’t say anything about \nLINUX. \nBest regards,\nOtto[/quote:1km3cb6w]\n\nYEP...LINUX Rocks\n\nSincerely.. I tried twice to have a decent SERVER with Windows... there were so many problems..... we have to put it after a Linux Firewall to work with it. And the machine was a monster (for that times a P4, 1 GB RAM, 2 SCSI HD, HP ) with 2003 Server and MS Sql Server, It was used for a big ERP solution. But once you put it to the web, it was a turtle, heavy and slow, all local processes became slow. The software was a mix of VB, JAVA and .NET, VB for local work, JAVA for WEB access and .Net for conectivity and services. In the meantime we have to download 3 SP and patches. The developer of the ERP asked us to put more RAM on the server, and have more bandwith available. I decided to put it inside the net, after a Linux Firewall and Proxy. There were no more problems with it. It's still working, but once or twice a week I have to check its logs looking for problems.\n\nOn the other hand. I think that a great solution is to have an external HOST with MYSQL or whatever SQL solutions you'll find. Here in CHILE for a 10 GB disk Space, NO traffic Limit, 25 MYSQL db's, 500 mail accounts, auto backup, and some \"extras\" for only U$ 25 monthly... a server, administration, backup, web access, 24/7 support, 99.999 uptime monthly.\nLicences included.\n\nI think is a solution for those who don't know how to administrate a Server, or doesn't have money to have his own with at least a T1 connection.\n\nThere you only ask your client to have a decent ADSL conection, and they can work from their homes, other locations, or while travelling etc. etc.\n\nFrom Chile\nAdolfo", "time": "20:10", "topic": "Choosing SQL database ...", "username": "Adolfo" } ]
Choosing SQL database ...
[ { "date": "2009-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Adolfo,\n\nA hosted server sounds like a very good idea for most small businesses. I will keep it in mind. Thanks for the info.\n\nRegards,\nJames", "time": "20:26", "topic": "Choosing SQL database ...", "username": "James Bott" } ]
Choosing SQL database ...
[ { "date": "2012-01-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi, I know it is an old post, but how can I install the ODBC driver in silent mode? I am using this one, and the switch /s does not work\n\n<!-- m --><a class=\"postlink\" href=\"http://www.ch-werner.de/sqliteodbc/\">http://www.ch-werner.de/sqliteodbc/</a><!-- m -->\n\nThank you very much.\nAlvaro\n\n\n[quote=\"anserkk\":frgwbuza]Dear Mr.Adolfo,\n\nMy intention is that when I run my FWH app, the FWH application should be able to check whether the ODBC driver is installed or not. If not installed then it will install the ODBC driver in Silent mode\n\nRegards\nAnser[/quote:frgwbuza]", "time": "11:04", "topic": "Choosing SQL database ...", "username": "alvaro533" } ]
Choosing SQL database ...
[ { "date": "2012-01-29", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"alvaro533\":1tqvjax9]Hi, I know it is an old post, but how can I install the ODBC driver in silent mode? I am using this one, and the switch /s does not work\n\n<!-- m --><a class=\"postlink\" href=\"http://www.ch-werner.de/sqliteodbc/\">http://www.ch-werner.de/sqliteodbc/</a><!-- m -->\n\nThank you very much.\nAlvaro\n[/quote:1tqvjax9]\n\n Alvaro ,\n\n At first this ODBC you must to install as a package in user PC . So you must to check PC system DSN names , if not exist , then you must run installation of this ODBC as driver . After installation you will create ODBC connection from your application ...", "time": "18:52", "topic": "Choosing SQL database ...", "username": "Rimantas" } ]
Choosing SQL database ...
[ { "date": "2012-01-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you for your answer, Rimantas,\n\nI have the app working fine with the driver installed. Now I have to send the program to my customers. I would like to be able to install the OBDC driver in silent mode, since some of my customers don't speak English and the driver instalation is in English. The parameter /S does not work. In this topic, someone said that it could be installed in silent mode, but I don't know how to do it. The driver I am refering to is this one:\n\n<!-- m --><a class=\"postlink\" href=\"http://www.ch-werner.de/sqliteodbc/\">http://www.ch-werner.de/sqliteodbc/</a><!-- m -->\n\nThank you,\n\nAlvaro", "time": "12:23", "topic": "Choosing SQL database ...", "username": "alvaro533" } ]
Choosing SQL database ...
[ { "date": "2012-01-30", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"alvaro533\":1m0896v7]Thank you for your answer, Rimantas,\n\nI have the app working fine with the driver installed. Now I have to send the program to my customers. I would like to be able to install the OBDC driver in silent mode, since some of my customers don't speak English and the driver instalation is in English. The parameter /S does not work. In this topic, someone said that it could be installed in silent mode, but I don't know how to do it. The driver I am refering to is this one:\n\n<!-- m --><a class=\"postlink\" href=\"http://www.ch-werner.de/sqliteodbc/\">http://www.ch-werner.de/sqliteodbc/</a><!-- m -->\n\nThank you,\n\nAlvaro[/quote:1m0896v7]\n\n Alvaro ,\n I'm using the same SqLite odbc driver . It seems that you don't understand me ... <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> . As I mentioned , the problem is that the user must install ODBC driver . You must to send to user own program and instalation package of this ODBC driver . The parameter /S is for creating DSN name of ODBC driver from your FWH program . This isn't the same . Let talk about Access dobc driver . The Access odbc in all win systems alreday exist . So you can with FWH programm create new DSN ( data source name ) of ODBC with all parameters . This can be done with /S parameter . But mentioned SqLite ODBC driver didn't exist in windows system . You must to run installation of this driver . \n The best way is to get remote connection to user PC and install ODBC driver .", "time": "13:32", "topic": "Choosing SQL database ...", "username": "Rimantas" } ]
Choosing SQL database ...
[ { "date": "2012-01-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi.\n\nGoing back to the comparison between dbfs and sql; I think it is hard to appreciate the magnitud of the advantages offered by an SQL server side engine (ADS, MySql, MSSql, ASE, iAnywhere, ...) that are simply impossible to reproduce with plain dbfs. For example:\n\n1. Server side triggers. Yes -this is huge.\n2. Server enforced referential integrity rules (i.e no orphan records). -Peace of mind.\n3. Transactions. More peace of mind.\n4. SERIOUSLY Reduced network traffic.\n5. zero table corruption. You'll love it when you no longer have to restore a table or try to fix it.\n6. Data security -tables do not need to be placed on a \"shared\" directory where a malicious user could do as he pleases.\n7. Server Notifications to clients.\n8. Replication.\n9. Remote http access (via php, Java, ... clients)\n10. Much more advanced field types\n\nISAM has its beauty and I have always thought that most people on the SQL community undervalue its worth. With ADS you have SQL + ISAM. I don't think any other SQL engine does the same + zero maintenance.\n\nReinaldo.", "time": "21:47", "topic": "Choosing SQL database ...", "username": "reinaldocrespo" } ]
Choosing SQL database ...
[ { "date": "2012-02-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"reinaldocrespo\":1ciorz8k]Hi.\n\nGoing back to the comparison between dbfs and sql; I think it is hard to appreciate the magnitud of the advantages offered by an SQL server side engine (ADS, MySql, MSSql, ASE, iAnywhere, ...) that are simply impossible to reproduce with plain dbfs. For example:\n\n1. Server side triggers. Yes -this is huge.\n2. Server enforced referential integrity rules (i.e no orphan records). -Peace of mind.\n\nISAM has its beauty and I have always thought that most people on the SQL community undervalue its worth. With ADS you have SQL + ISAM. I don't think any other SQL engine does the same + zero maintenance.\n\nReinaldo.[/quote:1ciorz8k]\n\n Why I'm migrating to SQL ? I'm thinking that good project must have 2 parts - database and application . And database must have business logic in triggers and UDF's . Application can be from FWH, RIA with javascript and etc . When user in applications data grid change values , then database triggers & udf's are doing needfuls actions . The application only must to do a way to needfulls datas . Then you can to separate more forces for a good solutions how to browse , present this datas . With DBF's all business logics is in application . If I change something related data to remain of stock , I must to do some other changes in other DBF's tables with application . This isn't a good way . If to change application , from FWh to Visual Basic ( as for sample ) then programmer must to do the business logics with other language . \n\n Maybe alreday exist something similar with and with DBF's ( excluding ADS ) . The DBF's with own simplity have charm . For a simply projects they are irrepleaceble ...\n\n With best regards !", "time": "18:40", "topic": "Choosing SQL database ...", "username": "Rimantas" } ]
Choosing SQL database ...
[ { "date": "2008-03-16", "forum": "FiveLinux / FiveDroid (Android)", "text": "Hi Antonio\n\nI am happily generating forms as postscript files and can print them and delete them via lpr. I would like to specify the printer that they are sent to. lpr supports this via the -P option. I wanted to get a list of printers bur GetPrinters() didn't seem to exist. I got a linker error. GetDefaultPrinter() didn't work either. I had a little go at \n\n[code:179w5i11]PRINTER oPrn\noPrn&#58;Choose&#40;&#41;[/code:179w5i11]\n\nand got the dialog, but that doesn't seem to return a printer it wants to print a file you have already created using oPrn:Say (which isn't what I want to do).\n\nIs there a way of getting a list of printer names?\nIs GetPrinters() not in xHarbour (Linux version) or was it removed as part of FiveLinux build?\nOr is there possibly a library missing from my build file?\n\nThanks\nDoug\n(xProgrammer)", "time": "08:56", "topic": "Choosing a Printer", "username": "xProgrammer" } ]
Choosing a Printer
[ { "date": "2008-12-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\r\n\r\nthe TPrinter-method SetBin(nBin) can address a bin available on the printer. But is there also a method to save the bin a user has chosen in the printer setup dialog? For example, if he chooses the \"tractor\", I want to save it in an .ini-file and if he prints the same form again use this setting for default.", "time": "10:44", "topic": "Choosing and Saving Printer Bin", "username": "gkuhnert" } ]
Choosing and Saving Printer Bin
[ { "date": "2008-12-23", "forum": "FiveWin for Harbour/xHarbour", "text": "The function PrnBinSource() returns the currently selected bin.\r\n\r\nEMG", "time": "10:59", "topic": "Choosing and Saving Printer Bin", "username": "Enrico Maria Giordano" } ]
Choosing and Saving Printer Bin
[ { "date": "2008-12-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\r\n\r\nthank you very much!\r\nI'll try it <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "11:05", "topic": "Choosing and Saving Printer Bin", "username": "gkuhnert" } ]
Choosing and Saving Printer Bin
[ { "date": "2008-12-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\r\n\r\nafter choosing the printer with prnsetup() the answer I get for PrnBinSource() always is 15, no matter which printer I choose and which tray/bin I choose. \r\n\r\nthis is my sourcecode for testing:\r\n\r\n[code:3dkh8juc]\taNeuDrucker &#58;= PrnSetup&#40;&#41;\n\tMsgInfo&#40;\"Printer-bin&#58; \"+str&#40;PrnBinSource&#40;&#41;&#41;&#41;\n[/code:3dkh8juc]", "time": "11:28", "topic": "Choosing and Saving Printer Bin", "username": "gkuhnert" } ]
Choosing and Saving Printer Bin
[ { "date": "2008-12-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Maybe a bug in PrnBinSource(), I don't know, sorry.\r\n\r\nEMG", "time": "11:38", "topic": "Choosing and Saving Printer Bin", "username": "Enrico Maria Giordano" } ]
Choosing and Saving Printer Bin
[ { "date": "2022-12-21", "forum": "mod_harbour", "text": "Dear friends,\n\nthe year is almost over and I want to take the opportunity to wish all of you merry Christmas and all the best for the new year.\n\nHappy holidays and may all your wishes come true.\nBest regards,\nOtto\n\n[url:39gtmms8]https&#58;//www&#46;facebook&#46;com/groups/modharbour&#46;club[/url:39gtmms8]\n\n[img:39gtmms8]https&#58;//mybergland&#46;com/fwforum/weihnacht2023modharbour&#46;jpg[/img:39gtmms8]", "time": "11:32", "topic": "Christmas 2022", "username": "Otto" } ]
Christmas 2022
[ { "date": "2022-12-21", "forum": "mod_harbour", "text": "Dear friends,\n\nthe year is almost over and I want to take the opportunity to wish all of you merry Christmas and all the best for the new year.\n\nHappy holidays and may all your wishes come true.\nBest regards,\nOtto\n\n[url:1jl2wa4h]https&#58;//www&#46;facebook&#46;com/groups/modharbour&#46;club[/url:1jl2wa4h]\n\n[img:1jl2wa4h]https&#58;//mybergland&#46;com/fwforum/weihnacht2023modharbour&#46;jpg[/img:1jl2wa4h]", "time": "11:33", "topic": "Christmas 2022", "username": "Otto" } ]
Christmas 2022
[ { "date": "2022-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear friends ,\n\nwe would like to take the opportunity to thank you for your help and the good cooperation.\n\nWe wish a Merry Christmas and all the best for 2023.\n\nKind regards\nOtto and family\n\n[img:3afpakzg]https&#58;//mybergland&#46;com/fwforum/winhotelweihnachten2022&#46;jpg[/img:3afpakzg]", "time": "11:49", "topic": "Christmas 2022", "username": "Otto" } ]
Christmas 2022
[ { "date": "2022-12-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[img:rcldj8rs]https&#58;//i&#46;postimg&#46;cc/jSdsvyC0/mm&#46;png[/img:rcldj8rs]\nfrom <!-- w --><a class=\"postlink\" href=\"http://www.cartolinefree.it\">www.cartolinefree.it</a><!-- w --> ( my site)", "time": "14:01", "topic": "Christmas 2022", "username": "Silvio.Falconi" } ]
Christmas 2022
[ { "date": "2022-12-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Merry Christmas and Happy and Prosperous New Year to all.", "time": "14:35", "topic": "Christmas 2022", "username": "nageswaragunupudi" } ]
Christmas 2022
[ { "date": "2022-12-22", "forum": "FiveWin for Harbour/xHarbour", "text": "MERRY CHRISTMAS TO ALL THE FRIENDS HERE!", "time": "21:11", "topic": "Christmas 2022", "username": "Enrico Maria Giordano" } ]
Christmas 2022
[ { "date": "2022-12-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[img:e313dz37]https&#58;//imagizer&#46;imageshack&#46;com/img923/1067/liaaYA&#46;jpg[/img:e313dz37]", "time": "21:53", "topic": "Christmas 2022", "username": "Cgallegoa" } ]
Christmas 2022
[ { "date": "2022-12-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[img:1asc9duk]https&#58;//maveco&#46;be/fivewin/wensen&#46;jpg[/img:1asc9duk]\n\nAnd thanks to all for the support and help.", "time": "22:59", "topic": "Christmas 2022", "username": "Marc Venken" } ]
Christmas 2022
[ { "date": "2022-12-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Happy winter/summer solstice and Xmas <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[img:111ruswe]https&#58;//github&#46;com/FiveTechSoft/screenshots/blob/master/solsticio_invierno&#46;jpg?raw=true[/img:111ruswe]", "time": "10:07", "topic": "Christmas 2022", "username": "Antonio Linares" } ]
Christmas 2022
[ { "date": "2022-12-22", "forum": "mod_harbour", "text": "Happy winter/summer solstice and Christmas <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[img:3v1sgfy8]https&#58;//github&#46;com/FiveTechSoft/screenshots/blob/master/solsticio_invierno&#46;jpg?raw=true[/img:3v1sgfy8]", "time": "10:09", "topic": "Christmas 2022", "username": "Antonio Linares" } ]
Christmas 2022
[ { "date": "2022-12-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Wish you all FiveWinners,\n\n\"Merry Christmas and a Very Happy New Year\"\n\n-Ramesh Babu", "time": "01:55", "topic": "Christmas 2022", "username": "RAMESHBABU" } ]
Christmas 2022
[ { "date": "2022-12-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Wishing everyone a Merry Christmas and a Happy, Healthy & Prosperous New Year", "time": "05:39", "topic": "Christmas 2022", "username": "anserkk" } ]
Christmas 2022
[ { "date": "2022-12-23", "forum": "FiveWin for Harbour/xHarbour", "text": "[size=150:3byf4keo][b:3byf4keo]Zorionak eta Urte Berri On !!![/b:3byf4keo][/size:3byf4keo]", "time": "10:32", "topic": "Christmas 2022", "username": "Baxajaun" } ]
Christmas 2022
[ { "date": "2022-12-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear fellow forum members, I wish you a very Merry Christmas and good health.", "time": "15:25", "topic": "Christmas 2022", "username": "cnavarro" } ]
Christmas 2022
[ { "date": "2022-12-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Merry Christmas from the DEEP FREEZE in ( normally warm) South Carolina USA ... Rick Lipkin", "time": "14:43", "topic": "Christmas 2022", "username": "Rick Lipkin" } ]
Christmas 2022
[ { "date": "2022-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Dear friends ,\n\nwe would like to take the opportunity to thank you for your help and the good cooperation.\n\nWe wish a Merry Christmas and all the best for 2023.\n\nKind regards\nOtto and family\n\n[img:329kinee]https&#58;//mybergland&#46;com/fwforum/winhotelweihnachten2022&#46;jpg[/img:329kinee]", "time": "11:50", "topic": "Christmas 2023", "username": "Otto" } ]
Christmas 2023
[ { "date": "2022-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Feliz navidad a todos los compañeros del foro que tanto aportan y a los miembros de Fivetech que hacen posible que xbase no muera.", "time": "13:13", "topic": "Christmas 2023", "username": "jose_murugosa" } ]
Christmas 2023
[ { "date": "2022-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Feliz Navidad y un próspero año nuevo para todos. Muchas gracias por toda la ayuda que siempre me ha brindado este maravilloso foro.\n\nMerry Christmas and a prosperous new year to all. Thanks so much for all the help this wonderful forum has always given me.\n\nRegards, saludos.", "time": "13:48", "topic": "Christmas 2023", "username": "karinha" } ]
Christmas 2023
[ { "date": "2022-12-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Merry Christmas and Happy and Prosperous New Year to all.", "time": "14:35", "topic": "Christmas 2023", "username": "nageswaragunupudi" } ]
Christmas 2023
[ { "date": "2022-12-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Felices Fiestas y próspero año nuevo a todos los integrantes del mejor foro de programación que conozco, que tengamos todos mucha salud y nos sigamos leyendo por aquí.\n\nUn abrazo a todos.\n\nJosé. \n\nEnviado desde mi Lenovo TB-J606F mediante Tapatalk", "time": "16:25", "topic": "Christmas 2023", "username": "jvtecheto" } ]
Christmas 2023
[ { "date": "2022-12-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas felicidades a todos amigos!! Que terminen muy bien y que comiencen mejor!", "time": "20:54", "topic": "Christmas 2023", "username": "cmsoft" } ]
Christmas 2023
[ { "date": "2022-12-22", "forum": "FiveWin para Harbour/xHarbour", "text": "[img:54tmzwjl]https&#58;//imagizer&#46;imageshack&#46;com/img923/1067/liaaYA&#46;jpg[/img:54tmzwjl]", "time": "21:52", "topic": "Christmas 2023", "username": "Cgallegoa" } ]
Christmas 2023
[ { "date": "2022-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Felices fiestas a todos los buenos compañeros de este foro.\nSaludos\nJosé Luis", "time": "17:37", "topic": "Christmas 2023", "username": "groiss" } ]
Christmas 2023
[ { "date": "2022-12-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Felices fiestas a todos los compañeros del foro...\n\nSaludos\nRuben Dario G.", "time": "00:07", "topic": "Christmas 2023", "username": "ruben Dario" } ]
Christmas 2023
[ { "date": "2022-12-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Feliz solsticio de invierno/verano y Navidades <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[img:2kufnj6q]https&#58;//github&#46;com/FiveTechSoft/screenshots/blob/master/solsticio_invierno&#46;jpg?raw=true[/img:2kufnj6q]", "time": "10:08", "topic": "Christmas 2023", "username": "Antonio Linares" } ]
Christmas 2023
[ { "date": "2022-12-23", "forum": "FiveWin para Harbour/xHarbour", "text": "FELIZ NAVIDAD A TODOS!!!\nY FELIZ NUEVO AÑO 2023!!!!", "time": "10:13", "topic": "Christmas 2023", "username": "xmanuel" } ]
Christmas 2023