messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2013-08-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Please see the post of Mr James Bott here\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=26787&p=149225&hilit=persisting+data#p149225\">viewtopic.php?f=3&t=26787&p=149225&hilit=...
ADO RecordSet: Working locally without connecting to Server
[ { "date": "2013-08-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Rao:\n\nThanks a lot for your aportation, with the RecordSet's GetRows() method can you get the same result?\n\nRegards", "time": "16:22", "topic": "ADO RecordSet: Working locally without connecting to Server", "us...
ADO RecordSet: Working locally without connecting to Server
[ { "date": "2013-08-04", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Armando\":1zw7te9u]Mr. Rao:\n\nThanks a lot for your aportation, with the RecordSet's GetRows() method can you get the same result?\n\nRegards[/quote:1zw7te9u]\nWith GetRows() method you can read the recordset into an arr...
ADO RecordSet: Working locally without connecting to Server
[ { "date": "2013-08-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Let me add. Handling recordsets is more cumbersome than RDD and TData(Base)", "time": "18:52", "topic": "ADO RecordSet: Working locally without connecting to Server", "username": "nageswaragunupudi" } ]
ADO RecordSet: Working locally without connecting to Server
[ { "date": "2013-08-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Rao:\n\nThank for your comments.\n\nRegards", "time": "20:15", "topic": "ADO RecordSet: Working locally without connecting to Server", "username": "Armando" } ]
ADO RecordSet: Working locally without connecting to Server
[ { "date": "2013-08-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Rao:\n\nThanks for your works, \n\nI have a problem with \n\nMsgInfo( \"Renaming \" + cMdb + \" as \" + cBak + CRLF + ;\n \"This is equivalent to not having connection with Server\" )\n \n ? FRename( cMdb, cBak ) \...
ADO RecordSet: Working locally without connecting to Server
[ { "date": "2013-08-12", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:2wj2y3g8]? FRename( cMdb, cBak ) \n\nfrename returns -1 , this is because cMdb is still open \n[/quote:2wj2y3g8]\nIf it returns -1, then renaming was not successful for whatever reason and one of such reasons could be that ...
ADO RecordSet: Working locally without connecting to Server
[ { "date": "2013-08-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Rao \n\nwith the FWH 13.07 revised build it works \n\nThanks \nMaurizio", "time": "07:44", "topic": "ADO RecordSet: Working locally without connecting to Server", "username": "Maurizio" } ]
ADO RecordSet: Working locally without connecting to Server
[ { "date": "2018-07-08", "forum": "FiveWin for Harbour/xHarbour", "text": "At times it may be necessary to change the data of a Recordset with totally different data from the same or different tables and even from a different connection. One way is to read the new data into a new recordset and swap with ...
ADO RecordSets - Change SQL & Con at Runtime
[ { "date": "2018-07-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Very impressive <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nGreat capabilities for the new FWH 18.05 <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" tit...
ADO RecordSets - Change SQL & Con at Runtime
[ { "date": "2006-08-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi guys\n\nWhere I can find more information about ADO Recordset methods and properties like RecordCount(), fields etc\n\nThanks", "time": "23:37", "topic": "ADO Recordset Methods", "username": "wpacheco" } ]
ADO Recordset Methods
[ { "date": "2006-08-12", "forum": "FiveWin for Harbour/xHarbour", "text": "On MSDN.\n\nEMG", "time": "10:50", "topic": "ADO Recordset Methods", "username": "Enrico Maria Giordano" } ]
ADO Recordset Methods
[ { "date": "2006-08-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks Enrico", "time": "12:25", "topic": "ADO Recordset Methods", "username": "wpacheco" } ]
ADO Recordset Methods
[ { "date": "2015-06-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Sir(s)\n\nI have one table in sql database. if USER1 is browsing ARTICLE\ntable and make some changes, how to to update/visible USER2 browse with the\nsame change?\n\nSomething like dbf. when we change records it update to ev...
ADO SQL VISIBILITY
[ { "date": "2015-06-24", "forum": "FiveWin for Harbour/xHarbour", "text": "You can use:\n\nCursorLocation := adUseServer\nCursorType := adOpenDynamic\n\nPros:\nSelects without where clause much faster because you dont load immediately all records\nYou'll see new adds deletes changes by others. You will a...
ADO SQL VISIBILITY
[ { "date": "2015-06-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Yunus,\n\nAs far as I know, there is no way other than redoing the query.\n\nEMG", "time": "17:21", "topic": "ADO SQL VISIBILITY", "username": "Enrico Maria Giordano" } ]
ADO SQL VISIBILITY
[ { "date": "2015-06-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Dagia\n\nYou can put a few well placed oRs:ReQuery() to re-fresh each workstation .. Generally you can place a :ReQuery() between screens which should keep each workstation in sync. .. again, SQL workstation visibility is an art-f...
ADO SQL VISIBILITY
[ { "date": "2015-06-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear EMG, AHF & RICK LIPKIN\n\nThanks for the valuable information. \n\nThanks & Regards", "time": "15:20", "topic": "ADO SQL VISIBILITY", "username": "dagiayunus" } ]
ADO SQL VISIBILITY
[ { "date": "2015-06-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:297kcfmu]SQL workstation visibility is an art-form and takes a fairly savvy programming imagination to keep them in sync.[/quote:297kcfmu]\nYes.", "time": "08:12", "topic": "ADO SQL VISIBILITY", "username": "nag...
ADO SQL VISIBILITY
[ { "date": "2015-06-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Severside queries (RecordSet with adUseServer) are *mostly* unidirectional and single pass, used mainly for fast single pass processing. Even this is not generally desirable and may result in wrong results because we lose the bene...
ADO SQL VISIBILITY
[ { "date": "2015-06-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Rao,\n\nI think like in ADORDD the main problem is with additions because deletions or changes are always catched when we try to update.\n\nIn ADORDD this is only a problem working without true locks because otherwise for ex. t...
ADO SQL VISIBILITY
[ { "date": "2015-06-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Antonio\n\nYou wanted a quick method to know if other users added new records after current user opened the recordset.\nThis discussion is confined to direct tables (not queries) opened using adUseClient.\n\nIf the table has a ...
ADO SQL VISIBILITY
[ { "date": "2015-06-30", "forum": "FiveWin for Harbour/xHarbour", "text": "This is just for academic interest.\nFrom version 2005, MS SQLSERVER introduced a notification feature.\nInstead of client querying the server frequently for any changes in the status, a notification queue can be created and serve...
ADO SQL VISIBILITY
[ { "date": "2015-06-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Rao,\n\n[quote:3ndie2mh]\"select max(primarykey)\" is always highly optimized and fast.[/quote:3ndie2mh]\n\nAdordd its working like that but I found at least with Mysql that its taking too long.\nIf you try to use it for instan...
ADO SQL VISIBILITY
[ { "date": "2015-06-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Antonio\n\nI agree that COUNT(* or any field) is the slowest on every RDMS.\nExcept for small tables or otherwise optimize queries yielding small subsets, no body uses count().\n\nBecause primary-key is indexed max(primary-key)...
ADO SQL VISIBILITY
[ { "date": "2015-06-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Rao,\n\n[quote:330cfz4w]Better we do not interfere with triggers etc. Better to leave it to their database programmers.[/quote:330cfz4w]\n\nTrue I know we shouldnt do it.\n\n[code=fw:330cfz4w]<div class=\"fw\" id=\"{CB}\" style...
ADO SQL VISIBILITY
[ { "date": "2015-06-30", "forum": "FiveWin for Harbour/xHarbour", "text": "No\nThis is for MySql and I did not use it.\nFor MsSql I advised another query. \nLet us first provide optimal performance for at least two popular servers. Let's keep exploring.", "time": "09:45", "topic": "ADO SQL VISIBI...
ADO SQL VISIBILITY
[ { "date": "2015-06-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Rao,\n\nIt works ok I need further testing.\n\nHow can I check the size of the schema table being queried ?\nIs it there only the max autoinc of each table ?", "time": "09:55", "topic": "ADO SQL VISIBILITY", "userna...
ADO SQL VISIBILITY
[ { "date": "2015-06-30", "forum": "FiveWin for Harbour/xHarbour", "text": "SELECT * FROM INFORMATION_SCHEMA.TABLES", "time": "12:51", "topic": "ADO SQL VISIBILITY", "username": "nageswaragunupudi" } ]
ADO SQL VISIBILITY
[ { "date": "2015-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Antonio\n\nPlease try this on different databases and see if this works.\n\n[code=fw:1csdtyl2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> LastAutoIncID<span st...
ADO SQL VISIBILITY
[ { "date": "2015-07-02", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"dagiayunus\":r49dv00l]Dear Sir(s)\n\nI have one table in sql database. if USER1 is browsing ARTICLE\ntable and make some changes, how to to update/visible USER2 browse with the\nsame change?\n\nSomething like dbf. when we...
ADO SQL VISIBILITY
[ { "date": "2016-09-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI'm using FWH ADO on MariaDB.\n\nEverything is working fine.\nOnly one client have a problem on 2 PC's\n\nThe program is a cash desk.\nIf the products are scanned, everything is fast.\nIf there is no client for 5 minutes, I...
ADO SQL slow after idle for a while
[ { "date": "2016-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nDoes anyone else have also this problem?\nI've been testing it and have change some settings in the database-server, but no result.\n\nThe delay is not very long (0.8s), but the problem is that it is used in a shop with a b...
ADO SQL slow after idle for a while
[ { "date": "2016-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": ">>>\notmp:open(SQLCommando,ADO_SQL_Connectionstring)\n\n>>>\nIf you want speed, do not use connection strings, use connection object which is already open.", "time": "10:11", "topic": "ADO SQL slow after idle for a while"...
ADO SQL slow after idle for a while
[ { "date": "2016-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you, but how can I the run each time a different query to receive arecordsset?", "time": "11:16", "topic": "ADO SQL slow after idle for a while", "username": "Marc Vanzegbroeck" } ]
ADO SQL slow after idle for a while
[ { "date": "2016-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc\n\nHere is a Sql Server example on how to create a Global Connection (oCn ) .. Once you have made your connection .. just pass oCn instead of your connection string. There are other ways you can do the same thing using the FW...
ADO SQL slow after idle for a while
[ { "date": "2016-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\n\nThank you, I will try it.", "time": "16:01", "topic": "ADO SQL slow after idle for a while", "username": "Marc Vanzegbroeck" } ]
ADO SQL slow after idle for a while
[ { "date": "2013-03-12", "forum": "FiveWin para Harbour/xHarbour", "text": "If you are looking for a Sample on how to call a stored procedure on MS-SQL Server with parameters, here is one which may be useful to you\n\n[code=fw:pirhx5yi]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span...
ADO STORED PROCEDURES
[ { "date": "2013-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas Tardes, alguien tendra un ejemplo de como llamar un store procedure y pasarles sus parametros MS-SQLSERVER a traves de ADO. Gracias.", "time": "18:27", "topic": "ADO STORED PROCEDURES", "username": "angstin" ...
ADO STORED PROCEDURES
[ { "date": "2013-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Select Tu_procedimiento( parametros )\n\nSaludos", "time": "18:37", "topic": "ADO STORED PROCEDURES", "username": "horacio" } ]
ADO STORED PROCEDURES
[ { "date": "2013-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias, por responder lo hago de esa manera y me da el siguiente error: Class: 'ERROR' has no exported method \n\n[code=fw:120ud9zj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">cad_sql0:=<span style=\"color: #...
ADO STORED PROCEDURES
[ { "date": "2013-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "No entiendo como pasas los parámetros, aqui un ejemplo \n\n[code=fw:ij4mydjj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; &nbsp; &nbsp; cQuery &nbsp; &nbsp; := <span style=\"color: #ff0000;\...
ADO STORED PROCEDURES
[ { "date": "2013-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Y cual es el nombre del procedimiento ahi en tu ejemplo y cuales son los parametros? gracias", "time": "19:34", "topic": "ADO STORED PROCEDURES", "username": "angstin" } ]
ADO STORED PROCEDURES
[ { "date": "2013-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Neto y bruto son los procedimientos, y cNroLegajo es el parámetro. Sería bueno que que pusieras aqui como programaste el procedimiento\n\nSaludos", "time": "20:27", "topic": "ADO STORED PROCEDURES", "username": "horac...
ADO STORED PROCEDURES
[ { "date": "2013-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "me sigue dando el mismo error\n cad_sql0:=\"SELECT pp_actualiza_stock('\"+xc_art+\"','\"+xc_alma+\"',\"+str(xtot_art)\n\t\t cad_sql0:=cad_sql0+\",'stock_act',\"+str(xuct)+\",'\"+dtoc(xf_lot)\n\t\t cad_sql0:=cad_sql0+\"',\"+str(xs...
ADO STORED PROCEDURES
[ { "date": "2013-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "No trabajo mssql, imagino que el paso de parámetros debe estar normalizado para cualquier motor sql. Lo que no entiendo son las igualdades que ponés en el paso de parámetros po ej '@co_art='\"+xc_art', en MySql el paso sería sola...
ADO STORED PROCEDURES
[ { "date": "2013-03-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Em sql server (microsoft) los store procedures se llaman con EXECUTE no con SELECT.\n\npor ejemplo, si necesito el SP me devuelva un recordset:\n\n[code=fw:1tc97y1v]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">...
ADO STORED PROCEDURES
[ { "date": "2015-05-28", "forum": "FiveWin for Harbour/xHarbour", "text": "I using ors:sort := \"field1,field2\" but I get a error.\n\nDB Mysql CursorLocation = adUseClient.\n\nDoes anyone knows what might be the cause and how to solve it?", "time": "16:24", "topic": "ADO Sort error", "userna...
ADO Sort error
[ { "date": "2015-05-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio\n\nI always put my sort values as parameters within parenthesis .. Try it this way:\n[code=fw:36lx90vt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRs:<span style=\"color: #000000;\">sort</span><s...
ADO Sort error
[ { "date": "2015-05-30", "forum": "FiveWin for Harbour/xHarbour", "text": "oRs:Sort := \"field1,field2\" is perfectly valid.\nBut oRs:Sort works only on client side recordsets", "time": "17:59", "topic": "ADO Sort error", "username": "nageswaragunupudi" } ]
ADO Sort error
[ { "date": "2015-06-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks!", "time": "18:52", "topic": "ADO Sort error", "username": "AHF" } ]
ADO Sort error
[ { "date": "2008-08-05", "forum": "FiveWin for Harbour/xHarbour", "text": "To All\r\n\r\nI have put together a simple sql query that joins two tables that I have cut and pasted out of MS SQL Studio.\r\n\r\nI know the query works .. every time I try to execute this query, my computer locks up .. any ideas...
ADO Sql Query limitations ??
[ { "date": "2008-08-06", "forum": "FiveWin for Harbour/xHarbour", "text": "To All\r\n\r\nI have this problem FIXED .. as it turned out .. it had nothing directly to do with the query, but I was displaying cSQL on a title bar for a wait dialog box .. see code :\r\n\r\nIt was the length of the variable cSQ...
ADO Sql Query limitations ??
[ { "date": "2008-03-01", "forum": "FiveWin for Harbour/xHarbour", "text": "With DBF files, i use a listbox in a dialog and display the records of the DBF .\nIf the user want to search , he press the search button and write what he is looking for\n\nHow to do the same with record set, how to requery ??\n\...
ADO Sql and Requery
[ { "date": "2008-03-01", "forum": "FiveWin for Harbour/xHarbour", "text": "I use the sort option when I have multiple search possibliities .. consider this code :\n\noRs:Sort := \"fname\"\noRs:MoveFirst()\noRs:Find(\"fname = '\"+cFIND+\"'\" )\n\noLBX:ReFresh()\nSysReFresh()\n\n.. or\n\noRs:Sort := \"lnam...
ADO Sql and Requery
[ { "date": "2008-03-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\nThanks for this answer but what have i to to\nif the date is not in the record set .\nI i have a table with 1 000 000 of records or more,\ni will not have : select * form table \ni will place a first scope : select * form t...
ADO Sql and Requery
[ { "date": "2018-06-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas tardes, \nestoy comenzando a convertir mis bases de datos DBF a MYSQL. Una vez importadas las tablas en MYSQL me he encontrado con el problema de la anchura de los campos numéricos.\nPrimero probé con la propiedad nPrecisi...
ADO anchura campos numéricos
[ { "date": "2018-06-26", "forum": "FiveWin para Harbour/xHarbour", "text": "gmart:\n\nPodrías crear los campos numérico como DECIMAL (5,2), de esa forma\nsiempre sabrás tamaño y cantidad de decimales.\n\nPara tomar en cuenta, MySql siempre guarda el contenido como tipo carácter\ny el punto decimal se alm...
ADO anchura campos numéricos
[ { "date": "2018-06-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias Armando,\nen mi caso estoy usando la función FW_ADOImportFromDBF para importar los DBF en MYSQL y me he encontrado que las tablas creadas automáticamente tienen campos BigInt, TinyInt, Int y Decimal.\nAdemás no ha ...
ADO anchura campos numéricos
[ { "date": "2018-06-27", "forum": "FiveWin para Harbour/xHarbour", "text": "With DBF, { \"fieldname\", \"N\", 6, 2 } uses 8 bytes including \"-\" sign and decimal. So it can store from -99.99 to 999.99.\n\nIn MySql (and many other RDBS), DECIMAL( 5, 2 ) can store -999.99 to 999.99\n\nIntegers:\nMySQL INT...
ADO anchura campos numéricos
[ { "date": "2018-06-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias Rao, \nlo tendré en cuenta para el diseño de mis tablas cuando esté funcionando al 100 por 100 con ADO y MySQL.\n\nUn saludo.", "time": "13:50", "topic": "ADO anchura campos numéricos", "username": "gma...
ADO anchura campos numéricos
[ { "date": "2015-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\nI have an invoice file with a field InvoiceNumber, when the user add a record, the invoice number must be the last one + 1\n\nIn a SQL network environment, how can i be shure that dont have 2 times the same number .\n\nWit...
ADO and Lock
[ { "date": "2015-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "The easiest and the most reliable way is to create the invoiceno field as an autoincrement field.\nNote: Even for DBFs (using DBFCDX) this is the current practice to use autoincrement field.\nFW functions for ADO make it very easy...
ADO and Lock
[ { "date": "2015-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "I agree with you BUTthe custumer ask me to reset the counter to 1 each month.\n\nThere is a prefix in front of the invoice number who is YYYYMM-invoice number ==> 201506-0001 .....\n\nThanks for your help .", "time": "09:17", ...
ADO and Lock
[ { "date": "2015-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Understand.\nI'll be back with a proposal in a while", "time": "09:26", "topic": "ADO and Lock", "username": "nageswaragunupudi" } ]
ADO and Lock
[ { "date": "2015-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nYou can define a field as unique and there is no chance to have 2 same values\n\nBest regards,", "time": "10:00", "topic": "ADO and Lock", "username": "avista" } ]
ADO and Lock
[ { "date": "2015-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Jack\n\nTo my knowledge there is not a ( good ) way to lock a Sql table ... and the Ole provider usually handles all the 'opportunistic' locks for you.\n\nWith that said .. I have come up with a table called [InvoiceNumbers] and w...
ADO and Lock
[ { "date": "2015-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Jack,\n\nI put a unique index on the invoice-number.\nEach time a customer add a new invoice I check for the last invoice number (Query with a desc order on invoice-number and a limit of 1).\nThen I add directly an empty record wi...
ADO and Lock
[ { "date": "2015-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc,\nIs it possible to give a sample of code .\n\nI read in the past that it is possible to use a SQL table in exclusive mode , how to ?\n\nThanks.", "time": "19:53", "topic": "ADO and Lock", "username": "Jack" } ]
ADO and Lock
[ { "date": "2015-06-18", "forum": "FiveWin for Harbour/xHarbour", "text": "An Auto-increment field is a double edge sword that I would avoid as invoice numbers. One of the potential problems that can arise with auto-increment fields is that if the table is later merged o copied to another table, append ...
ADO and Lock
[ { "date": "2015-08-04", "forum": "FiveWin for Harbour/xHarbour", "text": "I am back with this problem .\n\nCould someone share some sample of code of transaction with fivewin .\n\nThanks", "time": "19:33", "topic": "ADO and Lock", "username": "Jack" } ]
ADO and Lock
[ { "date": "2015-08-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello\n\n I have DBF file \n AADD (aDbf, {\"XXXXX\", \"L\", 1 , 0 }) \n\n when I print the Invoice I open the file in in exclusive mode\n Dbusearea(.F. ,\"DBFCDX\" , m->E7 + ::cFile ,::oDbfMov:cAlias ,.T. ,.F.)\n\n I...
ADO and Lock
[ { "date": "2015-08-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":3r9ydpse]The easiest and the most reliable way is to create the invoiceno field as an autoincrement field.\nNote: Even for DBFs (using DBFCDX) this is the current practice to use autoincrement field.\n...
ADO and Lock
[ { "date": "2015-08-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:1w3d98sw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />Hi...<br /><br />In addition <span style=\"color: #0000ff;\">to</span> controlling the row, I check <span style=\"color: #00C800;\">if</span> ...
ADO and Lock
[ { "date": "2015-08-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Instead of using an AutoIncrement field -for the reasons I have argued above on this thread- one way to solve this problem is to create a unique index based on the Invoice No field. When you try to insert a new record with an exi...
ADO and Lock
[ { "date": "2015-08-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Horizon,\n\n[quote:182kpnr9]How Can I define autoincrement field in DBFCDX.[/quote:182kpnr9]\n\nDefine it with the type \"+\"\n\nJames", "time": "15:53", "topic": "ADO and Lock", "username": "James Bott" } ]
ADO and Lock
[ { "date": "2015-08-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":2sy6tb1t]Horizon,\n\n[quote:2sy6tb1t]How Can I define autoincrement field in DBFCDX.[/quote:2sy6tb1t]\n\nDefine it with the type \"+\"\n\nJames[/quote:2sy6tb1t]\n\nThank you James. Is it possible to set a num...
ADO and Lock
[ { "date": "2015-08-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Hakan,\n\n[quote:2plxszwg]Is it possible to set a number to autoincrement field as a starting number?[/quote:2plxszwg]\n\nI don't believe there is a command for that. You could try adding one less records than the starting number ...
ADO and Lock
[ { "date": "2015-08-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":3qap0zx0]Hakan,\n\n[quote:3qap0zx0]Is it possible to set a number to autoincrement field as a starting number?[/quote:3qap0zx0]\n\nI don't believe there is a command for that. You could try adding one less re...
ADO and Lock
[ { "date": "2015-08-07", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:2o5jar0p]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />DbFieldInfo<span style=\"color: #000000;\">&#40;</span> DBS_COUNTER, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\"...
ADO and Lock
[ { "date": "2015-08-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Biel,\n\n[quote:or83td8y]DbFieldInfo( DBS_COUNTER, 1, 10) //Set autoincremt to 10[/quote:or83td8y]\n\nI am guessing that sets the next number to be 10?\n\nJames", "time": "16:46", "topic": "ADO and Lock", "username": "...
ADO and Lock
[ { "date": "2015-08-10", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":2wwyvqk6]\nI am guessing that sets the next number to be 10?\n\nJames[/quote:2wwyvqk6]\n\nJames,\n that is, next number will be 10.", "time": "09:24", "topic": "ADO and Lock", "username": "Biel EA...
ADO and Lock
[ { "date": "2015-08-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello everyone;\n\nAs you see from my previous posts, I do not like auto-increment fields as unique invoice numbers and I have explained why. I've also explained how a unique index on the invoice number can easily and safely solv...
ADO and Lock
[ { "date": "2015-08-25", "forum": "FiveWin for Harbour/xHarbour", "text": "I have a similar table that I use to track and generate new ID numbers that I use with DBFs. Since we can use both SQL tables and DBFs in the same app, I am thinking I can continue to use the same DBF which allows locking and thus...
ADO and Lock
[ { "date": "2015-08-26", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nWith adordd with SET ADO FORCE LOCK ON no other user or other app (using clipper compatible locking) can alter the table lock or exclusive or record locked hold by you. \n\nWith this set ON the FILE LOCK, RECORD LOCK, EX...
ADO and Lock
[ { "date": "2015-08-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio F.\n\nThanks for confirming that. I have been meaning to ask about it.\n\nSo, it seems, that my original auto-incrementing system should still work with the ADORDD. I will do some testing to confirm it.\n\nUsing the ADORDD...
ADO and Lock
[ { "date": "2015-08-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Interesting.\n\nI use a single file on the server that contains all unique counters ( ie. invoice numbers, client account numbers, etc ). When someone wants to create a new invoice, a very simple call grabs the last number used, ...
ADO and Lock
[ { "date": "2015-08-27", "forum": "FiveWin for Harbour/xHarbour", "text": "In a Sql concept,you will do :\n\noRs:Open(\"select ID FROM TABLE1\",oCon)\nwid:=oRs:Fields(\"ID\"):Value\nwid:=wid+1\nUPDATE TABLE1 SET ID=wid\n*\nHow can you lock, how are you sure that this code is not execute at the same time ...
ADO and Lock
[ { "date": "2015-08-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Just some ideas.\nI would prefer the 2nd one.\nAnother alternative in MySql is SELECT ... FOR UPDATE this locks the records.\n\n[code=fw:2urumznq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRs:<span styl...
ADO and Lock
[ { "date": "2013-07-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi All\n\nI a trying to use MySQL and ADO - I have a connection to the database and can open a table \nbut not sure what code to use to add records - according to a wiki page I found called ado-related stuff I can do the following...
ADO and MySql
[ { "date": "2013-07-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nPlease, see TDataRow class explained in whatsnew.txt.\n\nVery good class.", "time": "11:01", "topic": "ADO and MySql", "username": "lucasdebeltran" } ]
ADO and MySql
[ { "date": "2013-07-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Colin\n\nNothing specifically wrong with your addnew() and Update() .. please check how you create your Recordset and I suggest using these parameters :\n\n[code=fw:3o04bzri]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monos...
ADO and MySql
[ { "date": "2013-07-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks Rick - much appreciated.\n\nColin", "time": "00:45", "topic": "ADO and MySql", "username": "Colin Haig" } ]
ADO and MySql
[ { "date": "2017-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "hi\nI have this code\n[code=fw:2b7k45tt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />@ <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000f...
ADO and decimal numbers
[ { "date": "2017-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Ciao ,\ntry \n\n SET DECIMALS TO 4\n\nMaurizio \n<!-- w --><a class=\"postlink\" href=\"http://www.nipeservice.com\">www.nipeservice.com</a><!-- w -->", "time": "07:57", "topic": "ADO and decimal numbers", "username": ...
ADO and decimal numbers
[ { "date": "2017-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi\nciao Maurizio\n\nSET DECIMAL TO is inside at the top of .prg but not work with ADO", "time": "08:16", "topic": "ADO and decimal numbers", "username": "damianodec" } ]
ADO and decimal numbers
[ { "date": "2017-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Please make this modification in your xbrowse.prg:\n\nPlease locate the following lines in METHOD SetColFromADO(...)\n[code=fw:wj8iv9yq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; <span style=\"color: #...
ADO and decimal numbers
[ { "date": "2017-07-21", "forum": "FiveWin for Harbour/xHarbour", "text": "hi Mr Rao thank you\nI try this in xbrowse.prg\n[code=fw:shxqfnam]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">   <span style=\"color: #00C800;\">CASE</span> ASCAN<span style=\"color: #000000;\">&#40;</span> <sp...
ADO and decimal numbers
[ { "date": "2017-07-24", "forum": "FiveWin for Harbour/xHarbour", "text": "I Mr Rao\nin xBrowse i changed oCol:nDataDec in SetColFromADO METHOD\n[code=fw:1jz3udsy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">if</span> nDec != <span style=\"color: #...
ADO and decimal numbers
[ { "date": "2017-07-30", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"damianodec\":293nk86n]I Mr Rao\nin xBrowse i changed oCol:nDataDec in SetColFromADO METHOD\n[code=fw:293nk86n]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">if</span>...
ADO and decimal numbers