messages
listlengths 1
1
| topic
stringlengths 2
60
|
|---|---|
[
{
"date": "2023-09-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi Marc,\n\ni´m sure that \"Remote-Desktop\" work with \"Essential\"\n\"Remote Access\" can be dome with TeamViewer or VPN.",
"time": "14:58",
"topic": "Choise : Windows server standard 2022 versus essential 2022",
"username": "Jimmy"
}
] |
Choise : Windows server standard 2022 versus essential 2022
|
[
{
"date": "2023-09-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks Jimmy,\n\nOtto, can you point me to the correct version of serversoftware that you install on the systems of you customers ? \nYou have gone true all steps and have also the nessesary experience specific for FW software. \n\nThere are so many versions out there.",
"time": "15:49",
"topic": "Choise : Windows server standard 2022 versus essential 2022",
"username": "Marc Venken"
}
] |
Choise : Windows server standard 2022 versus essential 2022
|
[
{
"date": "2023-09-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi Marc,\n\nforgot to say that \"newer\" Windows Server Version NEED TPM & Secure-boot like Windows 11",
"time": "21:05",
"topic": "Choise : Windows server standard 2022 versus essential 2022",
"username": "Jimmy"
}
] |
Choise : Windows server standard 2022 versus essential 2022
|
[
{
"date": "2023-09-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Iris,\n\nWould you be so kind as to write down the specifications of the software we use for our SERVERBOOKs?\n\nBest regards,\nOtto",
"time": "22:07",
"topic": "Choise : Windows server standard 2022 versus essential 2022",
"username": "Otto"
}
] |
Choise : Windows server standard 2022 versus essential 2022
|
[
{
"date": "2023-09-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nfor our Serverbooks we are using Windows Server Standard 2019 or a higher version with per device licensing.\nThere are running dozens of servers - we are installing about 2-3 servers/month with this software without having troubles.\nPer system we have 5-7 active users who only get REMOTEDESKTOPUSER-rights and one Administrator.\n\nKind regards\nIris",
"time": "05:57",
"topic": "Choise : Windows server standard 2022 versus essential 2022",
"username": "Iris Gesser"
}
] |
Choise : Windows server standard 2022 versus essential 2022
|
[
{
"date": "2023-09-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Iris,\n\nmany thanks for sharing that info\n\nbest regards",
"time": "05:59",
"topic": "Choise : Windows server standard 2022 versus essential 2022",
"username": "Antonio Linares"
}
] |
Choise : Windows server standard 2022 versus essential 2022
|
[
{
"date": "2023-09-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This is interesting info.\n\nTo me they offered to take the server and user licences in a pack of 5\n\nI received folowing quot :\n\n1) 1 Windows Server 2022 Standard - 16 Core License Pack = 1.144,00 \n2) 5 Windows Server 2022 - 1 User CAL 49,00 € 49,00 = € 245,00 €\n+ installing around 250 euro\n\n\nIncluding CPU it is 3445 euro, but this is a heavy price and heavy machine I think.\n\nWhat do you think of these prices ? \n\nCPU was : 3.445 euro (including software) see below\n\n1 PowerEdge T150\nPowerEdge T150\nChassis 4 x 3.5in Cabled\n2x 480GB SSD\nIntel Xeon E-2314\n16GB\nDual-Port 1GbE\nS150 Software RAID-controller\niDRAC9 Enterprise\n3 Year ProSupport\n5x Windows Server 2022 RDS USER CALs\n5x Windows Server 2022 USER CALs\n1x Windows Server 2022 Standard ROK 16CORE",
"time": "10:29",
"topic": "Choise : Windows server standard 2022 versus essential 2022",
"username": "Marc Venken"
}
] |
Choise : Windows server standard 2022 versus essential 2022
|
[
{
"date": "2023-09-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Marc,\n\nI think the prices are about right, with the Server 2019 version likely being a bit cheaper.\n\nWe are reducing expenses through the use of \"Serverbooks\".\nFor example, we have the following device in continuous use without any issues: HP ProBook 440 G8.\nI am aware of the concerns against a notebook, but I cannot confirm them. We only experience advantages with it - including the screen, easy handling, space-saving.\nCompared to the 'real' servers, these devices are simply more lightweight. I can't recall any hardware failures in over 10 years.\n\nWe back up using Windows Server Backup on three hard drives and to our Cloud with Synology.\n\nKind regards,\nIris",
"time": "22:06",
"topic": "Choise : Windows server standard 2022 versus essential 2022",
"username": "Iris Gesser"
}
] |
Choise : Windows server standard 2022 versus essential 2022
|
[
{
"date": "2023-09-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "P.S.: You could perform the installation on your existing notebook, and test it within the 3-month grace period - so there would be no expenses for now.",
"time": "22:14",
"topic": "Choise : Windows server standard 2022 versus essential 2022",
"username": "Iris Gesser"
}
] |
Choise : Windows server standard 2022 versus essential 2022
|
[
{
"date": "2023-09-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi, \n\nServer 2019 Support will be \"outdate\" on 09 Jan 2024\n\nin old Day we had Windows Small Business Server\nServer \"Essential\" is new since 2012 and \"replace\" SBS\n\nServer \"Essential\" Version is much cheaper than Server Standard \nit \"include\" CAL for 25 User / 50 Device and NO \"extra\" CAL are need ( only for RDS )\n\n---\n\nwhile Server 2019 \"can\" be installed on \"old\" Hardware, which is not Windows 11 compatible, \nyou NEED TPM & Secure-Boot för newer Server Version\n\nE-Core, which newer Intel Desktop CPU have, does not work with Windows Server ( XEON does not have E-Core )\nhave not try Ryzen CPU and Windows Server yet",
"time": "00:07",
"topic": "Choise : Windows server standard 2022 versus essential 2022",
"username": "Jimmy"
}
] |
Choise : Windows server standard 2022 versus essential 2022
|
[
{
"date": "2023-09-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Jimmy,\n\nIt is RDS that we are going to use.",
"time": "21:22",
"topic": "Choise : Windows server standard 2022 versus essential 2022",
"username": "Marc Venken"
}
] |
Choise : Windows server standard 2022 versus essential 2022
|
[
{
"date": "2023-09-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hi Marc,\n[quote=\"Marc Venken\":2nq8ajby]It is RDS that we are going to use.[/quote:2nq8ajby]\nso what <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\nServer \"Essential\" CAN user RDS like Server \"Standard\" <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> \n\n---\n\nServer \"Essential\" is a OEM-Version and \"normal\" you get it as Bundle with Hardware\nbut you can legal buy that OEM-Version and use it",
"time": "18:39",
"topic": "Choise : Windows server standard 2022 versus essential 2022",
"username": "Jimmy"
}
] |
Choise : Windows server standard 2022 versus essential 2022
|
[
{
"date": "2019-05-08",
"forum": "FiveMac / FivePhone (iPhone, iPad)",
"text": "Hello,\n\nI use the ChoosFile function to get a filename: [code=fw:36ms7q53]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">ChooseFile<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">'Select a photo'</span>, <span style=\"color: #ff0000;\">'jpg'</span> <span style=\"color: #000000;\">)</span></div>[/code:36ms7q53]\nBut is it possible to set more extentions in this function. Something like: [code=fw:36ms7q53]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">ChooseFile<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">'Selecteer een foto'</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">'jpg'</span>, <span style=\"color: #ff0000;\">'jpeg'</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span></div>[/code:36ms7q53] This however does not work, now a user can pick any kind of file.",
"time": "06:28",
"topic": "ChooseFile with more options",
"username": "plantenkennis"
}
] |
ChooseFile with more options
|
[
{
"date": "2019-05-24",
"forum": "FiveMac / FivePhone (iPhone, iPad)",
"text": "René,\n\nPlease try it this way:\n\nChooseFile( 'Selecteer een foto', \"jpg,jpeg\" )",
"time": "15:01",
"topic": "ChooseFile with more options",
"username": "Antonio Linares"
}
] |
ChooseFile with more options
|
[
{
"date": "2019-05-24",
"forum": "FiveMac / FivePhone (iPhone, iPad)",
"text": "Hello Antonio,\n\nYes, perfect. This does the trick.",
"time": "19:00",
"topic": "ChooseFile with more options",
"username": "plantenkennis"
}
] |
ChooseFile with more options
|
[
{
"date": "2005-12-13",
"forum": "All products support",
"text": "Ciao FW's\ndevo rendere interattiva a scelta di font per la stampa, non riesco a verificare le fasi di annullamento da parte dell'utente, infatti se seleziona un qualsiasi font e poi annulla nell'array ritorna l'impostazione effettuata. \nInoltre non mi sembra funzionare bene l'impostazione della dimensione, imposto 12 e visualizza 9, poi seleziono 12 e ritorna 16 ????\n\nUso ancora la versione 2.5 forse ci sono stati degi aggiornamenti...\n\nMi confermate?\n\nGrazie per le risposte.\n\n\nEsempietto:\n\n\n#define LF_HEIGHT 1\n#define LF_WIDTH 2\n#define LF_ESCAPEMENT 3\n#define LF_ORIENTATION 4\n#define LF_WEIGHT 5\n#define LF_ITALIC 6\n#define LF_UNDERLINE 7\n#define LF_STRIKEOUT 8\n#define LF_CHARSET 9\n#define LF_OUTPRECISION 10\n#define LF_CLIPPRECISION 11\n#define LF_QUALITY 12\n#define LF_PITCHANDFAMILY 13\n#define LF_FACENAME 14\n\n#define FW_NORMAL 400\n#define FW_BOLD 700\n\n//------------------------------------------------------------------------------\n\nFUNCTION SelectFont( )\n\n LOCAL aFont[14], oIni, aOldFont, cFont\n\n INI oIni FILE DirPrg() + \"\\\" + ExeName() + \".INI\"\n GET cFont SECTION \"Stampanti\" ENTRY \"FontInStampa\" OF oIni DEFAULT \"Arial| 0| -12| 0| 0| 0| 0| 0\"\n ENDINI\n\n MsgInfo( cFont )\n\n aFont[LF_FACENAME] := ALLTRIM(StrToken(cFont,1,\"|\" ))\n aFont[LF_WIDTH] := VAL( StrToken( cFont, 2, \"|\" ))\n aFont[LF_HEIGHT] := VAL( StrToken( cFont, 3, \"|\" ))\n aFont[LF_WEIGHT] := IF( VAL( StrToken( cFont, 4, \"|\" )) > 0, FW_BOLD, FW_NORMAL )\n aFont[LF_ESCAPEMENT] := VAL( StrToken( cFont, 5, \"|\" ))\n aFont[LF_ITALIC] := VAL( StrToken( cFont, 6, \"|\" )) > 1\n aFont[LF_UNDERLINE] := VAL( StrToken( cFont, 7, \"|\" )) > 1\n\n aOldFont := AClone( aFont )\n\n aFont := ChooseFont( aFont )\n\n cFont := aFont[LF_FACENAME] + \"|\" +;\n cValToChar( aFont[LF_WIDTH] ) + \"|\" +;\n cValToChar( aFont[LF_HEIGHT] ) + \"|\" +;\n cValToChar( aFont[LF_WEIGHT] ) + \"|\" +;\n cValToChar( aFont[LF_ESCAPEMENT] ) + \"|\" +;\n cValToChar( aFont[LF_ITALIC] ) + \"|\" +;\n cValToChar( aFont[LF_UNDERLINE] )\n\n // Test in uscita\n MsgInfo( cFont )\n\nreturn If( ! Empty( aFont[ LF_FACENAME ] ), aFont, aOldFont )\n\n//------------------------------------------------------------------------------",
"time": "17:48",
"topic": "ChooseFont",
"username": "Ugo"
}
] |
ChooseFont
|
[
{
"date": "2005-12-13",
"forum": "All products support",
"text": "Mi dispiace ma il tuo esempietto non è compilabile.\n\nEMG",
"time": "20:09",
"topic": "ChooseFont",
"username": "Enrico Maria Giordano"
}
] |
ChooseFont
|
[
{
"date": "2005-12-14",
"forum": "All products support",
"text": "Prova ora:\n\n\n#define LF_HEIGHT 1\n#define LF_WIDTH 2\n#define LF_ESCAPEMENT 3\n#define LF_ORIENTATION 4\n#define LF_WEIGHT 5\n#define LF_ITALIC 6\n#define LF_UNDERLINE 7\n#define LF_STRIKEOUT 8\n#define LF_CHARSET 9\n#define LF_OUTPRECISION 10\n#define LF_CLIPPRECISION 11\n#define LF_QUALITY 12\n#define LF_PITCHANDFAMILY 13\n#define LF_FACENAME 14\n\n#define FW_NORMAL 400\n#define FW_BOLD 700\n\n//------------------------------------------------------------------------------\n\nFUNCTION Main( )\n\nLOCAL aFont[14], oIni, aOldFont, cFont\n\nINI oIni FILE \"prova.ini\"\nGET cFont SECTION \"Stampanti\" ENTRY \"FontInStampa\" OF oIni DEFAULT \"Arial| 0| -12| 0| 0| 0| 0| 0\"\nENDINI\n\nMsgInfo( cFont )\n\naFont[LF_FACENAME] := ALLTRIM(StrToken(cFont,1,\"|\" ))\naFont[LF_WIDTH] := VAL( StrToken( cFont, 2, \"|\" ))\naFont[LF_HEIGHT] := VAL( StrToken( cFont, 3, \"|\" ))\naFont[LF_WEIGHT] := IF( VAL( StrToken( cFont, 4, \"|\" )) > 0, FW_BOLD, FW_NORMAL )\naFont[LF_ESCAPEMENT] := VAL( StrToken( cFont, 5, \"|\" ))\naFont[LF_ITALIC] := VAL( StrToken( cFont, 6, \"|\" )) > 1\naFont[LF_UNDERLINE] := VAL( StrToken( cFont, 7, \"|\" )) > 1\n\naOldFont := AClone( aFont )\n\naFont := ChooseFont( aFont )\n\ncFont := aFont[LF_FACENAME] + \"|\" +;\ncValToChar( aFont[LF_WIDTH] ) + \"|\" +;\ncValToChar( aFont[LF_HEIGHT] ) + \"|\" +;\ncValToChar( aFont[LF_WEIGHT] ) + \"|\" +;\ncValToChar( aFont[LF_ESCAPEMENT] ) + \"|\" +;\ncValToChar( aFont[LF_ITALIC] ) + \"|\" +;\ncValToChar( aFont[LF_UNDERLINE] )\n\n// Test in uscita\nMsgInfo( cFont )\n\nreturn If( ! Empty( aFont[ LF_FACENAME ] ), aFont, aOldFont )\n\n//------------------------------------------------------------------------------",
"time": "10:38",
"topic": "ChooseFont",
"username": "Anonymous"
}
] |
ChooseFont
|
[
{
"date": "2005-12-14",
"forum": "All products support",
"text": "Sì, ora va. Confermo i problemi che hai riscontrato. Sembra che non ci sia modo di capire se l'utente ha premuto Annulla. Al più potresti capire se ha annullato o confermato lo stesso font. Inoltre la dimensione restituita effettivamente non corrisponde (ma potresti anche ignorare la cosa dato che quello che serve a te è solo il font restituito).\n\nEMG",
"time": "12:06",
"topic": "ChooseFont",
"username": "Enrico Maria Giordano"
}
] |
ChooseFont
|
[
{
"date": "2005-12-14",
"forum": "All products support",
"text": "> Confermo i problemi che hai riscontrato. \n> Sembra che non ci sia modo di capire se l'utente ha premuto Annulla. \n> Al più potresti capire se ha annullato o confermato lo stesso font. \n> Inoltre la dimensione restituita effettivamente non corrisponde\n\n> (ma potresti anche ignorare la cosa dato che quello che serve a te è\n solo il font restituito)\n\nPurtroppo invece mi serve il nome del font, la dimensione e se è bold, italico e quanto ho definito nella variabile aFont, con la quale costruisco il font sulla stampante...\n\nGrazie, cmq.\nPosto sull'internazionale!\n\nCiao,\nUgo",
"time": "14:11",
"topic": "ChooseFont",
"username": "Ugo"
}
] |
ChooseFont
|
[
{
"date": "2005-12-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Fw's.\n\nChooseFont function can not set correctly the dimension of character passed in Array parameter and if I change the dimension is not the set value correctly.\n\nFor Ex. I set in the array -12, ChooseFont 9, select 12 and return -16!!!\n\nAnother problem is if I press \"Cancel\" button after any setting, the function return the data setting and not the previous value.\n\nMany thanks for the help\n\nFor more info test this:\n\n#define LF_HEIGHT 1\n#define LF_WIDTH 2\n#define LF_ESCAPEMENT 3\n#define LF_ORIENTATION 4\n#define LF_WEIGHT 5\n#define LF_ITALIC 6\n#define LF_UNDERLINE 7\n#define LF_STRIKEOUT 8\n#define LF_CHARSET 9\n#define LF_OUTPRECISION 10\n#define LF_CLIPPRECISION 11\n#define LF_QUALITY 12\n#define LF_PITCHANDFAMILY 13\n#define LF_FACENAME 14\n\n#define FW_NORMAL 400\n#define FW_BOLD 700\n\n//------------------------------------------------------------------------------\n\nFUNCTION Main( )\n\nLOCAL aFont[14], oIni, aOldFont, cFont\n\nINI oIni FILE \"prova.ini\"\nGET cFont SECTION \"Stampanti\" ENTRY \"FontInStampa\" OF oIni DEFAULT \"Arial| 0| -12| 0| 0| 0| 0| 0\"\nENDINI\n\nMsgInfo( cFont )\n\naFont[LF_FACENAME] := ALLTRIM(StrToken(cFont,1,\"|\" ))\naFont[LF_WIDTH] := VAL( StrToken( cFont, 2, \"|\" ))\naFont[LF_HEIGHT] := VAL( StrToken( cFont, 3, \"|\" ))\naFont[LF_WEIGHT] := IF( VAL( StrToken( cFont, 4, \"|\" )) > 0, FW_BOLD, FW_NORMAL )\naFont[LF_ESCAPEMENT] := VAL( StrToken( cFont, 5, \"|\" ))\naFont[LF_ITALIC] := VAL( StrToken( cFont, 6, \"|\" )) > 1\naFont[LF_UNDERLINE] := VAL( StrToken( cFont, 7, \"|\" )) > 1\n\naOldFont := AClone( aFont )\n\naFont := ChooseFont( aFont )\n\ncFont := aFont[LF_FACENAME] + \"|\" +;\ncValToChar( aFont[LF_WIDTH] ) + \"|\" +;\ncValToChar( aFont[LF_HEIGHT] ) + \"|\" +;\ncValToChar( aFont[LF_WEIGHT] ) + \"|\" +;\ncValToChar( aFont[LF_ESCAPEMENT] ) + \"|\" +;\ncValToChar( aFont[LF_ITALIC] ) + \"|\" +;\ncValToChar( aFont[LF_UNDERLINE] )\n\n// Test in uscita\nMsgInfo( cFont )\n\nreturn If( ! Empty( aFont[ LF_FACENAME ] ), aFont, aOldFont )\n\n//------------------------------------------------------------------------------",
"time": "14:18",
"topic": "ChooseFont",
"username": "Ugo"
}
] |
ChooseFont
|
[
{
"date": "2005-12-14",
"forum": "All products support",
"text": "Per intercettare il tasto Annulla è necessario modificare la funzione ChooseFont contenuta nel modulo font.c\n\n...\n\nif ( !bOk )\n _reta(0);\n else {\n _reta( 14 );\n _storni( ( bOk || bInitLF ) ? lf.lfHeight: 0, -1, LF_HEIGHT );\n _storni( ( bOk || bInitLF ) ? lf.lfWidth: 0, -1, LF_WIDTH );\n _storni( ( bOk || bInitLF ) ? lf.lfEscapement: 0, -1, LF_ESCAPEMENT );\n _storni( ( bOk || bInitLF ) ? lf.lfOrientation: 0, -1, LF_ORIENTATION );\n _storni( ( bOk || bInitLF ) ? lf.lfWeight: 0, -1, LF_WEIGHT );\n _storl( ( bOk || bInitLF ) ? lf.lfItalic: 0, -1, LF_ITALIC );\n _storl( ( bOk || bInitLF ) ? lf.lfUnderline: 0, -1, LF_UNDERLINE );\n _storl( ( bOk || bInitLF ) ? lf.lfStrikeOut: 0, -1, LF_STRIKEOUT );\n _storni( ( bOk || bInitLF ) ? lf.lfCharSet: 0, -1, LF_CHARSET );\n _storni( ( bOk || bInitLF ) ? lf.lfOutPrecision: 0, -1, LF_OUTPRECISION );\n _storni( ( bOk || bInitLF ) ? lf.lfClipPrecision: 0, -1, LF_CLIPPRECISION );\n _storni( ( bOk || bInitLF ) ? lf.lfQuality: 0, -1, LF_QUALITY );\n _storni( ( bOk || bInitLF ) ? lf.lfPitchAndFamily: 0, -1, LF_PITCHANDFAMILY );\n _storc( ( bOk || bInitLF ) ? lf.lfFaceName: \"\", -1, LF_FACENAME );\n\n...\n\nCiao a tutti.\n\nPier Luigi",
"time": "16:06",
"topic": "ChooseFont",
"username": "Pier Luigi"
}
] |
ChooseFont
|
[
{
"date": "2005-12-14",
"forum": "All products support",
"text": "Perché non lo segnali ad Antonio così la corregge?\n\nEMG",
"time": "16:10",
"topic": "ChooseFont",
"username": "Enrico Maria Giordano"
}
] |
ChooseFont
|
[
{
"date": "2005-12-14",
"forum": "All products support",
"text": "Ok. Fatto.\n\nCiao\nPier Luigi",
"time": "16:24",
"topic": "ChooseFont",
"username": "Pier Luigi"
}
] |
ChooseFont
|
[
{
"date": "2005-12-14",
"forum": "All products support",
"text": "Grazie!\n\nEMG",
"time": "16:48",
"topic": "ChooseFont",
"username": "Enrico Maria Giordano"
}
] |
ChooseFont
|
[
{
"date": "2005-12-22",
"forum": "All products support",
"text": "Grazie Pier Luigi e Enrico,\n\nma la condizione non dovrebbe essere già gestita?\n\nif ( !bOk )\n_reta(0);\nelse {\n_reta( 14 );\n_storni( ([b:3oy7buim] bOk || bInitLF [/b:3oy7buim]) ? lf.lfHeight: 0, -1, LF_HEIGHT );\n_storni( ([b:3oy7buim] bOk || bInitLF [/b:3oy7buim]) ? lf.lfWidth: 0, -1, LF_WIDTH );\n\nMi sembra che || siano OR forse in questo caso ci va un'AND?\n... e la dimensione?",
"time": "17:05",
"topic": "ChooseFont",
"username": "Ugo"
}
] |
ChooseFont
|
[
{
"date": "2005-12-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ugo,\n\nPlease read this important information:\n\n>>\nThe one bit of trickery in this code is the value used for the size of the font, the lfHeight parameter to CreateFont(). Usually people are used to working with Point sizes, Size 10, Size 12, etc... when dealing with fonts. CreateFont() however doesn't accept point sizes, it wants Logical Units which are different on your screen than they are on your Printer, and even between Printers and screens. \n\nThe reason this situation exists is because the resolution of different devices is so vastly different... Printers can easily display 600 to 1200 pixels per inch, while a screen is lucky to get 200... if you used the same sized font on a printer as on a screen, you likely wouldn't even be able to see individual letters. \n\nAll we have to do is convert from the point size we want, into the appropriate logical size for the device. In this case the device is the screen, so we get the HDC to the screen, and get the number of logical pixels per inch using GetDeviceCaps() and slap this into the formula so generously provided in MSDN which uses MulDiv() to convert from our pointsize of 12 to the correct logical size that CreateFont() expects. We store this in lfHeight and pass it as the first parameter to CreateFont(). \n>>",
"time": "12:06",
"topic": "ChooseFont",
"username": "Antonio Linares"
}
] |
ChooseFont
|
[
{
"date": "2005-12-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ugo,\n\nThis is the right code for your sample:\n\n[code:p0zdt1l4]\n aFont := Array( 14 )\n aFont[LF_FACENAME] := ALLTRIM(StrToken(cFont,1,\"|\" ))\n aFont[LF_WIDTH] := VAL( StrToken( cFont, 2, \"|\" ))\n aFont[LF_HEIGHT] := Int( -VAL( StrToken( cFont, 3, \"|\" ) ) * GetDeviceCaps( hDC := GetDC( GetDesktopWindow() ), LOGPIXELSY ) / 72 )\n ReleaseDC( GetDesktopWindow(), hDC )\n[/code:p0zdt1l4]\n\nYou may use the hDC of the printer, if it is a font for to be printed.",
"time": "12:07",
"topic": "ChooseFont",
"username": "Antonio Linares"
}
] |
ChooseFont
|
[
{
"date": "2005-12-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Great Antonio,\nNow I set -12 in my array after apply your conversion and the Value is 16\nThis value is passed to Choose font and correctly I see preset 12 !!!\n\nGOOD !! <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\nAfter choosefont the dimension is 16!!! <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->\n\nIs necessary reconvert the value for obtain -12.\n\nIs possible to insert this features directly in Choosefont?\nWith 2 parameter ChooseFont( aFont, hDC ) ? <!-- s;) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";)\" title=\"Wink\" /><!-- s;) -->\n\nHave You found also the Solution for Cancel and X Button?\n\nPier Luigi write this solution:\nif ( !bOk )\n_reta(0);\nelse {\n_reta( 14 );\n_storni( ( bOk || bInitLF ) ? lf.lfHeight: 0, -1, LF_HEIGHT );\n_storni( ( bOk || bInitLF ) ? lf.lfWidth: 0, -1, LF_WIDTH ); \n\nI think that the problem is in bOk [b:3bn0i8nu]||[/b:3bn0i8nu] bInitLF!\n\nGood work.",
"time": "14:09",
"topic": "ChooseFont",
"username": "Ugo"
}
] |
ChooseFont
|
[
{
"date": "2005-12-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ugo,\n\n> Is necessary reconvert the value for obtain -12.\n\nYou may do the same calculations again.\n\n> Is possible to insert this features directly in Choosefont? \n\nI have thought about it, but I am afraid we may break existing code.\n\n> Have You found also the Solution for Cancel and X Button?\n\nYes, already fixed, though we return an array of 14 elements, all nil.",
"time": "14:22",
"topic": "ChooseFont",
"username": "Antonio Linares"
}
] |
ChooseFont
|
[
{
"date": "2005-12-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n> You may do the same calculations again.\nYes.\n\n> > Have You found also the Solution for Cancel and X Button?\n> Yes, already fixed, though we return an array of 14 elements, all nil.\n\nCan you send to me?\nThanks.",
"time": "14:41",
"topic": "ChooseFont",
"username": "Ugo"
}
] |
ChooseFont
|
[
{
"date": "2005-12-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ugo,\n\nJust change this:\n\n[code:1spesl0i]\nif ( !bOk ) \n _reta( 14 ); \n...\n[/code:1spesl0i]",
"time": "15:28",
"topic": "ChooseFont",
"username": "Antonio Linares"
}
] |
ChooseFont
|
[
{
"date": "2005-12-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\ni modified the fonts.c and i added to my project but I receive this message:\n\n[code:2t14q8li]Bcc32.Exe -M -c -O2 -tW -v- -X -DHB_FM_STATISTICS_OFF -DHB_NO_DEFAULT_API_MACROS -DHB_NO_DEFAULT_STACK_MACROS -DHB_OS_WIN_32 -Ic:\\work\\fwh\\include -Ic:\\work\\BCC55\\Include;c:\\work\\xHarbour\\Include -nObj Source\\fonts.c\nBorland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland\nSource\\fonts.c:\nWarning W8017 Source\\fonts.c 28: Redefinition of 'CHOOSEFONT' is not identical\nWarning W8019 Source\\fonts.c 371: Code has no effect in function GETFONTNAM\niLink32.Exe -Gn -aa -Tpe -s @InfoFiat.bcl\nTurbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland\n[/code:2t14q8li]\n\nand not run correctly!\n\nThanks for suggestion.",
"time": "00:21",
"topic": "ChooseFont",
"username": "Ugo"
}
] |
ChooseFont
|
[
{
"date": "2005-12-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Whats your code at line 371 ?",
"time": "10:24",
"topic": "ChooseFont",
"username": "Antonio Linares"
}
] |
ChooseFont
|
[
{
"date": "2005-12-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "line 371:\n\n[code:2gsl8bk7] FreeProcInstance( ( FARPROC ) EnumFontsCallBack );\n[/code:2gsl8bk7]",
"time": "15:23",
"topic": "ChooseFont",
"username": "Ugo"
}
] |
ChooseFont
|
[
{
"date": "2005-12-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ugo,\n\nFom Win32 docs:\n\n>>\nThe FreeProcInstance function is obsolete. \n\nThis function is provided only for compatibility with 16-bit versions of Windows. Win32-based applications should not use this function; it has no meaning in the 32-bit environment. \n>>\n\nThose both are just warnings, that you can safely ignore.",
"time": "18:15",
"topic": "ChooseFont",
"username": "Antonio Linares"
}
] |
ChooseFont
|
[
{
"date": "2005-12-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\nthank you for the info, I rem this line, \nbut for this warning:\n[code:xp1gi4hr]Warning W8017 Source\\fonts.c 28: Redefinition of 'CHOOSEFONT' is not identical[/code:xp1gi4hr]\nthe line 28 is:\n[code:xp1gi4hr]#define CHOOSEFONT CHOOSEFONT[/code:xp1gi4hr]",
"time": "15:55",
"topic": "ChooseFont",
"username": "Ugo"
}
] |
ChooseFont
|
[
{
"date": "2005-12-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ugo,\n\nIt is a warning you can safely ignore.",
"time": "09:33",
"topic": "ChooseFont",
"username": "Antonio Linares"
}
] |
ChooseFont
|
[
{
"date": "2005-12-14",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "In order to intercept the \"Cancel\" key is necessary to modify the ChooseFont function in the module font.c\n\n...\n\n if ( !bOk ) \n _reta(0);\n else {\n _reta( 14 );\n _storni( ( bOk || bInitLF ) ? lf.lfHeight: 0, -1, LF_HEIGHT );\n _storni( ( bOk || bInitLF ) ? lf.lfWidth: 0, -1, LF_WIDTH );\n _storni( ( bOk || bInitLF ) ? lf.lfEscapement: 0, -1, LF_ESCAPEMENT );\n _storni( ( bOk || bInitLF ) ? lf.lfOrientation: 0, -1, LF_ORIENTATION );\n _storni( ( bOk || bInitLF ) ? lf.lfWeight: 0, -1, LF_WEIGHT );\n _storl( ( bOk || bInitLF ) ? lf.lfItalic: 0, -1, LF_ITALIC );\n _storl( ( bOk || bInitLF ) ? lf.lfUnderline: 0, -1, LF_UNDERLINE );\n _storl( ( bOk || bInitLF ) ? lf.lfStrikeOut: 0, -1, LF_STRIKEOUT );\n _storni( ( bOk || bInitLF ) ? lf.lfCharSet: 0, -1, LF_CHARSET );\n _storni( ( bOk || bInitLF ) ? lf.lfOutPrecision: 0, -1, LF_OUTPRECISION );\n _storni( ( bOk || bInitLF ) ? lf.lfClipPrecision: 0, -1, LF_CLIPPRECISION );\n _storni( ( bOk || bInitLF ) ? lf.lfQuality: 0, -1, LF_QUALITY );\n _storni( ( bOk || bInitLF ) ? lf.lfPitchAndFamily: 0, -1, LF_PITCHANDFAMILY );\n _storc( ( bOk || bInitLF ) ? lf.lfFaceName: \"\", -1, LF_FACENAME );\n\n }\n\n...\n\nRegards\nPier Luigi",
"time": "16:22",
"topic": "ChooseFont function (fixed)",
"username": "Pier Luigi"
}
] |
ChooseFont function (fixed)
|
[
{
"date": "2009-02-16",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "ChooseFont() open a dialog with the option to choose the settings of the font and the color, but don't return this color!",
"time": "13:49",
"topic": "ChooseFont() Don't return the color selected",
"username": "sambomb"
}
] |
ChooseFont() Don't return the color selected
|
[
{
"date": "2009-02-18",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Samir,\n\nYou have to provide it the color variable by reference:\n[code=fw:78k66g1g]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">local</span> aFont, nRGBColor := <span style=\"color: #000000;\">0</span><br /><br />aFont = ChooseFont<span style=\"color: #000000;\">(</span> , @nRGBColor <span style=\"color: #000000;\">)</span><br />MsgInfo<span style=\"color: #000000;\">(</span> nRGBColor <span style=\"color: #000000;\">)</span><br /> </div>[/code:78k66g1g]",
"time": "00:23",
"topic": "ChooseFont() Don't return the color selected",
"username": "Antonio Linares"
}
] |
ChooseFont() Don't return the color selected
|
[
{
"date": "2005-10-12",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Hola \n\n\n Estoy utilizando la funcion Choosefont(), cuando selecciono un tipo de letra y la pongo en negrita, en el array que me devuelve no me lo devuelve con un tipo de letra en negrita, es que funciona mal esta funcion ?\n\n\naFont:=Choosefont() > AFont[8] siempre me devuelve .f.",
"time": "00:22",
"topic": "Choosefont no funciona bien ? (fixed)",
"username": "Gabri"
}
] |
Choosefont no funciona bien ? (fixed)
|
[
{
"date": "2005-10-28",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Gabri,\n\nAcabo de probar este ejemplo, y funciona correctamente. Pulsa el botón, selecciona negrita y verás como el botón se ve en negrita y muestra .t.. Y si luego le quitas negrita, sucede lo contrario. (Que version y build estás usando?):\n\n[code:1wl02kzj]\n#include \"FiveWin.ch\"\n\nstatic oWnd\n\nfunction Main()\n\n local oBtn\n\n DEFINE WINDOW oWnd TITLE \"Testing ChooseFont\"\n\n @ 2, 2 BUTTON oBtn PROMPT \"&Choose\" OF oWnd ;\n ACTION ( oBtn:GetFont(),;\n oBtn:SelFont(), MsgInfo( oBtn:oFont:lBold ) ) ; // nSize()\n SIZE 80, 25\n\n ACTIVATE WINDOW oWnd\n\nreturn nil\n[/code:1wl02kzj]",
"time": "07:29",
"topic": "Choosefont no funciona bien ? (fixed)",
"username": "Antonio Linares"
}
] |
Choosefont no funciona bien ? (fixed)
|
[
{
"date": "2005-10-28",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "[quote=\"Gabri\":30wgp0ax]aFont:=Choosefont() > AFont[8] siempre me devuelve .f.[/quote:30wgp0ax]\n\nEl valor negrita no se almacena en la posición 8. Se toma a partir del valor 5: \n\n[code:30wgp0ax] \n::lBold = If( lFromUser, ! ( ::nWeight == FW_NORMAL ), lBold )\n[/code:30wgp0ax]",
"time": "07:45",
"topic": "Choosefont no funciona bien ? (fixed)",
"username": "Antonio Linares"
}
] |
Choosefont no funciona bien ? (fixed)
|
[
{
"date": "2008-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\r\n\r\nwhen calling the function \"choosefont\", the dialog-box for choosing fonts doesn't include installed printer fonts, but all TrueType fonts and system fonts are offered. Howerver, if I choose a font in Word, for example, these printer fonts are listed. Is there a way to let the user choose also from printer fonts?",
"time": "11:57",
"topic": "Choosing Printer Fonts",
"username": "gkuhnert"
}
] |
Choosing Printer Fonts
|
[
{
"date": "2008-11-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "If we call choosefont, compiled in 16-bit, the printer fonts are being displayed (2D-Code1 and 2D-Code2):\r\n[img:1l6f1g4r]http://www.ctosoftware.de/extern/drucker16.jpg[/img:1l6f1g4r]\r\n\r\nIn the 32-bit compiled version, these fonts don't appear, although the same printer is chosen\r\n[img:1l6f1g4r]http://www.ctosoftware.de/extern/drucker32.jpg[/img:1l6f1g4r]",
"time": "09:41",
"topic": "Choosing Printer Fonts",
"username": "gkuhnert"
}
] |
Choosing Printer Fonts
|
[
{
"date": "2008-11-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gilbert,\r\n\r\nIn FWH\\source\\winapi\\fonts.c function ChooseFont() we are using the flag: CF_SCREENFONTS\r\n\r\nYou may modify that source code to include this flag also: CF_PRINTERFONTS\r\n[code:rq15xroi]\n cf.Flags = CF_SCREENFONTS | CF_PRINTERFONTS | IF( PCOUNT() > 1, CF_EFFECTS, 0 ) |\n IF( bInitLF, CF_INITTOLOGFONTSTRUCT, 0 );\n[/code:rq15xroi]",
"time": "10:20",
"topic": "Choosing Printer Fonts",
"username": "Antonio Linares"
}
] |
Choosing Printer Fonts
|
[
{
"date": "2008-11-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\r\n\r\nthanks for your help! However, the problem didn't happen with choosefont directly, but with oFont:Choose(). That was an error in my sourcecode research. But it seems to me there can be made an improvement to the Choose method in the TFont class, because the handle of the printer (hPrinterDC) isn't passed through to choosefont()\r\n\r\nI made following modification:\r\n\r\n[code:2j0cj6sp] if nRGBColor != nil\n aFont := ChooseFont( { ::nInpHeight, ::nInpWidth, ::nEscapement,;\n ::nOrientation, ::nWeight, ::lItalic,;\n ::lUnderLine, ::lStrikeOut, ::nCharSet,;\n ::nOutPrecision, ::nClipPrecision,;\n ::nQuality, ::nPitchFamily, ::cFaceName },;\n @nRGBColor )\n else\n aFont := ChooseFont( { ::nInpHeight, ::nInpWidth, ::nEscapement,;\n ::nOrientation, ::nWeight, ::lItalic,;\n ::lUnderLine, ::lStrikeOut, ::nCharSet,;\n ::nOutPrecision, ::nClipPrecision,;\n ::nQuality, ::nPitchFamily, ::cFaceName } )\n endif\n[/code:2j0cj6sp]\n\nto\n\n[code:2j0cj6sp]\tDO CASE\n\tCASE nRGBColor == nil .AND. hPrinterDC == nil\n aFont := ChooseFont( { ::nInpHeight, ::nInpWidth, ::nEscapement,;\n ::nOrientation, ::nWeight, ::lItalic,;\n ::lUnderLine, ::lStrikeOut, ::nCharSet,;\n ::nOutPrecision, ::nClipPrecision,;\n ::nQuality, ::nPitchFamily, ::cFaceName },;\n )\n\n\tCASE nRGBColor == nil .AND. hPrinterDC != nil\n aFont := ChooseFont( { ::nInpHeight, ::nInpWidth, ::nEscapement,;\n ::nOrientation, ::nWeight, ::lItalic,;\n ::lUnderLine, ::lStrikeOut, ::nCharSet,;\n ::nOutPrecision, ::nClipPrecision,;\n ::nQuality, ::nPitchFamily, ::cFaceName },;\n , hPrinterDC )\n\n\tCASE nRGBColor != nil .AND. hPrinterDC == nil\n aFont := ChooseFont( { ::nInpHeight, ::nInpWidth, ::nEscapement,;\n ::nOrientation, ::nWeight, ::lItalic,;\n ::lUnderLine, ::lStrikeOut, ::nCharSet,;\n ::nOutPrecision, ::nClipPrecision,;\n ::nQuality, ::nPitchFamily, ::cFaceName },;\n @nRGBColor, )\n\n\tCASE nRGBColor != nil .AND. hPrinterDC != nil\n aFont := ChooseFont( { ::nInpHeight, ::nInpWidth, ::nEscapement,;\n ::nOrientation, ::nWeight, ::lItalic,;\n ::lUnderLine, ::lStrikeOut, ::nCharSet,;\n ::nOutPrecision, ::nClipPrecision,;\n ::nQuality, ::nPitchFamily, ::cFaceName },;\n @nRGBColor, hPrinterDC )\n\n\tENDCASE\n[/code:2j0cj6sp]\r\n\r\nAnd now it works fine!",
"time": "12:10",
"topic": "Choosing Printer Fonts",
"username": "gkuhnert"
}
] |
Choosing Printer Fonts
|
[
{
"date": "2008-11-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gilbert,\r\n\r\nvery good! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n\r\nThanks for sharing your solution",
"time": "12:45",
"topic": "Choosing Printer Fonts",
"username": "Antonio Linares"
}
] |
Choosing Printer Fonts
|
[
{
"date": "2009-10-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi ,\n\n I want to get a small advice in this situation . I can choose MySQL , FireBird and SQLite . MySQL and FireBird I know and alreday tested - they all work pretty good . But I'm paying attenation to SQLite - how good this thing is ? My project will be in network env. - Win2003 server , ~ 12-15 PC users and and ~ 1-2 Gb size database . Program will be one - Fwh + Harbour - which will work with that database . Program of production - it will be using intensive . I read this chapter in SqLite ste : <!-- m --><a class=\"postlink\" href=\"http://www.sqlite.org/whentouse.html\">http://www.sqlite.org/whentouse.html</a><!-- m --> . But from this explanation I can't image - will SqLite meet for my requirements ? Why SqLite ? Very simple and stable , it seems ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> . Any comments and advices from your experience are welcome ! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n Many thanks in advance !",
"time": "19:48",
"topic": "Choosing SQL database ...",
"username": "Rimantas"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rimantas...\n\nI worked litle things with Sqlite 3, It's fast, reliable, no dependencies of any kind but...\nfor such proyected database size, better go for MYSQL, althoug I got a 300 MB Sqlite DB working with no problem, I Prefer Mysql for my larger projects.\n\nI have 5 Mysql Installations, all of them on a FEDORA CORE 9,10 Linux Server, I configured them once some time ago, and I haven't \"visit\" them in months. I turn the servers on ... and they are still working. \n\nHope it helps.\n\nFrom Chile\nAdolfo",
"time": "20:59",
"topic": "Choosing SQL database ...",
"username": "Adolfo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Robust. Stable. Integrated with [x]Harbour. Fast.\n\n[b:kck394uz]Advantage Database Server.[/b:kck394uz]\n\n\nJust my 2Cents <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> \n\n\n\nRegards\n<!-- s:idea: --><img src=\"{SMILIES_PATH}/icon_idea.gif\" alt=\":idea:\" title=\"Idea\" /><!-- s:idea: -->",
"time": "04:59",
"topic": "Choosing SQL database ...",
"username": "fraxzi"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"fraxzi\":rzr9ahzr]Robust. Stable. Integrated with [x]Harbour. Fast.\n\n[b:rzr9ahzr]Advantage Database Server.[/b:rzr9ahzr]\n\n\nJust my 2Cents <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> \n\n\n\nRegards\n<!-- s:idea: --><img src=\"{SMILIES_PATH}/icon_idea.gif\" alt=\":idea:\" title=\"Idea\" /><!-- s:idea: -->[/quote:rzr9ahzr]\n\n And how many cost the \"Robust.Stable\" ADS ? <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> ... Excuse for my irony , maybe it's free versions , bus as I remember , isn't free . I know that this is a good thing , but for limited budget project I'm prefering free DBMS . About 6-7 years ago I played with ADS local server and , remember , that performance was weaky place ... Maybe at this time and local server works good , I don't know . But ADS is working with the sames DBFs + CDXs . If you watched my latest topic in this forum , you will noticed that they concerned about how to insert new lines in xBrowse , a la blank line . The problem concerned moment , if user refused of this new record . It seems that with DBFs this isn't possible . So I decided to choose SQL engine DBMS , as here I can insert blank line , delete this line without any result . Deletion in DBFs leave records in deleted() state , that for a big database isn't good thing ...",
"time": "06:08",
"topic": "Choosing SQL database ...",
"username": "Rimantas"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Adolfo\":173d99p9]Rimantas...\n\nI worked litle things with Sqlite 3, It's fast, reliable, no dependencies of any kind but...\nfor such proyected database size, better go for MYSQL, althoug I got a 300 MB Sqlite DB working with no problem, I Prefer Mysql for my larger projects.\n\nI have 5 Mysql Installations, all of them on a FEDORA CORE 9,10 Linux Server, I configured them once some time ago, and I haven't \"visit\" them in months. I turn the servers on ... and they are still working. \n\nHope it helps.\n\nFrom Chile\nAdolfo[/quote:173d99p9]\n\n Thanks Adolfo !\n\n + for MySql ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> . Some questions - how many users ( PC , connections ) are working with SQLite and your program ? In this database a big amount of size is \"amount of work done\" . They are needful for 3-4 months storage and then it can be deleted . So the size of database can be smaller in some times ... Excuse , but I'm still interesting with SQLite ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\n Regards !\n\n\n Regards !",
"time": "06:10",
"topic": "Choosing SQL database ...",
"username": "Rimantas"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rimantas..\n\nI tested Mysql with 25 Pc's working at the same time, but in real work, only 15 use the Db on a regular basis. The total size of the DB ( 50 tables ) is 1.6 GB and growing <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nFor Sqlite, I have 3 Pc's connected, each one can have multiple instances of the program running at the same time, sometimes 3 for each Pc. This one has a total size of 280 mb, fixed for some time, is an historical DB, you can only insert comments on each record. Next year it will grow some 20 or 30 MB\n\nThe only thing I miss from Sqlite, is security, anyone with Admin rights in the server can erase the file ( .db), although is very easy to use and transfer from one machine to another, your exe, DB, some DLL's and you are done.\n\nFrom Chile\nAdolfo",
"time": "12:44",
"topic": "Choosing SQL database ...",
"username": "Adolfo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Adolfo\":1kyxmr90]Rimantas..\n\nI tested Mysql with 25 Pc's working at the same time, but in real work, only 15 use the Db on a regular basis. The total size of the DB ( 50 tables ) is 1.6 GB and growing <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nFor Sqlite, I have 3 Pc's connected, each one can have multiple instances of the program running at the same time, sometimes 3 for each Pc. This one has a total size of 280 mb, fixed for some time, is an historical DB, you can only insert comments on each record. Next year it will grow some 20 or 30 MB\n\nThe only thing I miss from Sqlite, is security, anyone with Admin rights in the server can erase the file ( .db), although is very easy to use and transfer from one machine to another, your exe, DB, some DLL's and you are done.\n\nFrom Chile\nAdolfo[/quote:1kyxmr90]\n\n Thanks Adolfo for your answer . \n\n It seems that with SQLite I can do this project ... I'm not letting to run multiple instances of program in the same PC . 3-4 users are only viewing data . Only in 4-5 places work with database is more intensive - in movement of aux.materials and account of amount of work + barcodes of work . \n The security isn't a problem . The main + of SQLite , as you mentioned , simplicity . \n\n Your experience helped me . Thanks you again .. <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> I'll try to do project with SqLite ...\n\n With best regards !",
"time": "13:40",
"topic": "Choosing SQL database ...",
"username": "Rimantas"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "To All\n\nUnless I am missing something on the licensing .. you can download the 'FREE' MS Sql express 2005 or 2008 database .. scalled down version of Sql Server.\n\n<!-- m --><a class=\"postlink\" href=\"http://www.microsoft.com/Sqlserver/2005/en/us/express.aspx?pf=true\">http://www.microsoft.com/Sqlserver/2005 ... px?pf=true</a><!-- m -->\n\nYou can use all your existing ADO code .. and you do not need a pc client to talk natively to SQL Server or SQL Express .. all the client connectivity is already built into WinXP thru Win7 .. no runtimes, no net framework .. no need to install any client software on each desktop.\n\nRick Lipkin\nSC Criminal Justice Academy",
"time": "16:15",
"topic": "Choosing SQL database ...",
"username": "Rick Lipkin"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick...\n\nsame happens with Oracle 10g Express Edition... FREEE\n\nSupports 4GB data, 1GB Ram, 1 CPU (no matter if it is Core 2 quad )\n\nAdolfo",
"time": "16:38",
"topic": "Choosing SQL database ...",
"username": "Adolfo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Rimantas\":15r46v9x][quote=\"fraxzi\":15r46v9x]Robust. Stable. Integrated with [x]Harbour. Fast.\n\n[b:15r46v9x]Advantage Database Server.[/b:15r46v9x]\n\n\nJust my 2Cents <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> \n\n\n\nRegards\n<!-- s:idea: --><img src=\"{SMILIES_PATH}/icon_idea.gif\" alt=\":idea:\" title=\"Idea\" /><!-- s:idea: -->[/quote:15r46v9x]\n\n And how many cost the \"Robust.Stable\" ADS ? <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> ... Excuse for my irony , maybe it's free versions , bus as I remember , isn't free . I know that this is a good thing , but for limited budget project I'm prefering free DBMS . About 6-7 years ago I played with ADS local server and , remember , that performance was weaky place ... Maybe at this time and local server works good , I don't know . But ADS is working with the sames DBFs + CDXs . If you watched my latest topic in this forum , you will noticed that they concerned about how to insert new lines in xBrowse , a la blank line . The problem concerned moment , if user refused of this new record . It seems that with DBFs this isn't possible . So I decided to choose SQL engine DBMS , as here I can insert blank line , delete this line without any result . Deletion in DBFs leave records in deleted() state , that for a big database isn't good thing ...[/quote:15r46v9x]\n\n\nIt's OK . <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> Like I said.. 'Just my 2cents'\nWell, I agree, free DBMS or any SQL are good. It's a personal preference too.\n\nIf anyone exploit ADS function and features there's 'transaction processing' wherein you can reverse the table's record if somehow there's a flow in user input.. no need to add that record to table or in your case.. delete a record.\n\nI wish to try free SQL too.. like postgreSQL, mySQL and others to be integrated with [x]Harbour. I am with you on this.\n\n\nRegards",
"time": "02:32",
"topic": "Choosing SQL database ...",
"username": "fraxzi"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Rick Lipkin\":4ssph323]To All\n\nUnless I am missing something on the licensing .. you can download the 'FREE' MS Sql express 2005 or 2008 database .. scalled down version of Sql Server.\n\n<!-- m --><a class=\"postlink\" href=\"http://www.microsoft.com/Sqlserver/2005/en/us/express.aspx?pf=true\">http://www.microsoft.com/Sqlserver/2005 ... px?pf=true</a><!-- m -->\n\nYou can use all your existing ADO code .. and you do not need a pc client to talk natively to SQL Server or SQL Express .. all the client connectivity is already built into WinXP thru Win7 .. no runtimes, no net framework .. no need to install any client software on each desktop.\n\nRick Lipkin\nSC Criminal Justice Academy[/quote:4ssph323]\n\nIt is free, the limitation is that the databases size cannot exceed more than 4GB. \n\nRegards\nAnser",
"time": "07:05",
"topic": "Choosing SQL database ...",
"username": "anserkk"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\n\nThe IBM DB2 is no limit to size of database, but limited to 1 cpu and 1 mb of ram and is free.\n\n\n\nAtte.,\n\nLautaro Moreira",
"time": "13:44",
"topic": "Choosing SQL database ...",
"username": "Lautaro"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"James Bott\":24kublfe]...With DBFs you only have to read 10 records across the network, then you can display the browse.\n[/quote:24kublfe]\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....\n\nIn 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\n\n\nRegarding 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...\n\nYou can downloaded from here\n[url:24kublfe]http://200.72.140.34/privado/adobase/[/url:24kublfe]\n\nAS I STATED...\nI CAN do incremetal searching with ADO and SQL, the TEST shows it.\n\nAdolfo",
"time": "12:23",
"topic": "Choosing SQL database ...",
"username": "Adolfo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello all ,\n \n Thanks for your suggestions . In the first post I directed what DBMS which I can to choose - MySQL , FireBird and SQLite . In earlier I did some test with FireBird - it leave very good impression . I did some queries with some hundreds thousands records - it browses very fast . That was in local PC , but I believe that in network env. this server-client engine can work fast . I know and MySQL too - good and , can say , solid DBMS ...\n\n But at this time I'm interesting with SqlLite 3 . Interesting - parameters for server can be passed through program , simply design , alreday support foreign keys , easy install . And if it will work fast - that will be No 1 DBMS ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\n Adolfo , I have request to you - can you share some samples , how you are working with SqLite ? Connection , query , xBrowse ? Also - what TSqlLite.prg you have ? Mine dated 19.10.2007 , size 64135 . Maybe you have newest prg of this class ? If you will send - mine private e-mail : <!-- e --><a href=\"mailto:rimantasu@gmail.com\">rimantasu@gmail.com</a><!-- e --> ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\n Many thanks in advance ! With best regards !",
"time": "19:26",
"topic": "Choosing SQL database ...",
"username": "Rimantas"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rimantas \n\nI don't use TSqlite\nI use an ODBC Client for SqLite, so I connect to it via ADO <!-- s8) --><img src=\"{SMILIES_PATH}/icon_cool.gif\" alt=\"8)\" title=\"Cool\" /><!-- s8) --> \n\nAnd is as fast as any dbf used locally.\n\nAdolfo",
"time": "20:21",
"topic": "Choosing SQL database ...",
"username": "Adolfo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi\n\nsomeone has a comlete example for using ADO with SQL SERVER \n\nI am using ODBC with UPDATE, INSERT, DELETE, the purest possible\n\nthanks\n\nMarcelo\nChile",
"time": "02:12",
"topic": "Choosing SQL database ...",
"username": "marcelodelacruz"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Adolfo\":37gyqkev]Rimantas \n\nI don't use TSqlite\nI use an ODBC Client for SqLite, so I connect to it via ADO <!-- s8) --><img src=\"{SMILIES_PATH}/icon_cool.gif\" alt=\"8)\" title=\"Cool\" /><!-- s8) --> \n\nAnd is as fast as any dbf used locally.\n\nAdolfo[/quote:37gyqkev]\n \n Hello Adolfo ,\n\n <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> .. Sorry , I was thinking that you are working with SQLite through wrapper . Hmmm ... maybe it's a better way . ADO techn. is more free from wrappers - the same code will work good with many DBMS , except some issues . Though Rick wroted in earlier , that the last ADO use .net technology and exist some problems . Maybe they are not big ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> . \n\n With best regards !",
"time": "13:30",
"topic": "Choosing SQL database ...",
"username": "Rimantas"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rimantas\n\nThe reason I like SQL Server is because you do NOT need .net framework .. you do NOT need any client like Oracle, dB2 or some other SQL flavors which REQUIRE a run-time client. If I have to develop an application that needs to run on any Windows computer .. I do not want to have to make sure there is an ODBC or a run-time ( .net framework ) client configured on each pc .. All windows operating systems have native connectivity to MS Sql server .. right out of the box .. nothing to configure .. it just runs with your ADO code.\n\nI worked for a large state Agency with over 5k users .. you think I want to make sure all 5k desktops have ODBC configured .. or have the correct version of .net framework .. I would be doing nothing but answering help desk calls on configuration connectivity issues ..\n\nFor me .. SQL Server and ADO is a perfect match .. just compile your .exe and distribute it .. burn in your connection string credentials into your app .. and you are done .. \n\nRick Lipkin\nSC Criminal Justice Academy",
"time": "16:37",
"topic": "Choosing SQL database ...",
"username": "Rick Lipkin"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Rick Lipkin\":22pqzhyf]Rimantas\n...\nI worked for a large state Agency with over 5k users .. you think I want to make sure all 5k desktops have ODBC configured .. or have the correct version of .net framework .. I would be doing nothing but answering help desk calls on configuration connectivity issues ..\n\nFor me .. SQL Server and ADO is a perfect match .. just compile your .exe and distribute it .. burn in your connection string credentials into your app .. and you are done .. \n...\n[/quote:22pqzhyf]\n\n Thank , Rick , for your comprehensive answer ... \n\n Can you share with source code for connection ? \n\n With best regards !",
"time": "18:30",
"topic": "Choosing SQL database ...",
"username": "Rimantas"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rimantas\n\nHere is the link that will explain it all .. has connections and syntax for .mdb ( access ) as well as Sql Server:\n\n<!-- m --><a class=\"postlink\" href=\"http://wiki.fivetechsoft.com/doku.php?id=ado-related_stuffs&s=ado\">http://wiki.fivetechsoft.com/doku.php?i ... uffs&s=ado</a><!-- m -->\n\nRick Lipkin",
"time": "18:41",
"topic": "Choosing SQL database ...",
"username": "Rick Lipkin"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Rick Lipkin\":3rmlyr3y]Rimantas\n\nHere is the link that will explain it all .. has connections and syntax for .mdb ( access ) as well as Sql Server:\n\n<!-- m --><a class=\"postlink\" href=\"http://wiki.fivetechsoft.com/doku.php?id=ado-related_stuffs&s=ado\">http://wiki.fivetechsoft.com/doku.php?i ... uffs&s=ado</a><!-- m -->\n\nRick Lipkin[/quote:3rmlyr3y]\n\n Thanks again , Rick !\n\n Another question : how to connect to remote server ? The enterprise have 2 divisions and it's requiremets to view data in other city . At this time they are using \"Remote Desktop Connection\" . But that method isn't comfortable . Better will be to view data fron the same application , only changing connection . Is this possible ?\n\n Regards !",
"time": "08:05",
"topic": "Choosing SQL database ...",
"username": "Rimantas"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Mr.Rimantas,\n\nTo connect to Database server on a remote server the follwing has to be considered. \n\n1) Internet connection should be available on the PC running the database server\n2) Instead of localhost or 127.0.0.1, the connection string on your client PC app should have either the Internet IP or Domain name\n3) If the network (Database server network) has firewall, then you may have to do a port forwarding on the firewall.\n\nRegards\nAnser",
"time": "08:12",
"topic": "Choosing SQL database ...",
"username": "anserkk"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"anserkk\":tsmrlaoq]Dear Mr.Rimantas,\n\nTo connect to Database server on a remote server the follwing has to be considered. \n\n1) Internet connection should be available on the PC running the database server\n2) Instead of localhost or 127.0.0.1, the connection string on your client PC app should have either the Internet IP or Domain name\n3) If the network (Database server network) has firewall, then you may have to do a port forwarding on the firewall.\n\nRegards\nAnser[/quote:tsmrlaoq]\n\n Anser , many thanks for explanation . \n\n Regards !",
"time": "10:11",
"topic": "Choosing SQL database ...",
"username": "Rimantas"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Adolfo\":3rz4rdb7]Rimantas \nI use an ODBC Client for SqLite, so I connect to it via ADO <!-- s8) --><img src=\"{SMILIES_PATH}/icon_cool.gif\" alt=\"8)\" title=\"Cool\" /><!-- s8) --> \nAdolfo[/quote:3rz4rdb7]\n\n Adolfo ,\n \n Please help me again . In SqLite.org site they are providing only SqLite ODBC for connection . I downloaded this , hoping that with ODBC drivers will be and OLE DB Provider . Sorry , but here was only ODBC install package . So at this moment I can't understand what you are using . ODBC it's one thing , ADO - another . Both I know and want to accurate - you are talking about something that : cConnectionString := \"DSN=[color=#BF0000:3rz4rdb7]odbc name[/color:3rz4rdb7] ;UID=YOURUSERID;PWD=YOURPASSWORD;\" ?\n\n With best regards !",
"time": "20:37",
"topic": "Choosing SQL database ...",
"username": "Rimantas"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I would like to know where you can get a free 25 user license of MySQL ? When I read the licensing, a commercial application requires you to purchase a license.",
"time": "21:17",
"topic": "Choosing SQL database ...",
"username": "TimStone"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Rimantas\":55x3nef6][quote=\"Adolfo\":55x3nef6]Rimantas \nI use an ODBC Client for SqLite, so I connect to it via ADO <!-- s8) --><img src=\"{SMILIES_PATH}/icon_cool.gif\" alt=\"8)\" title=\"Cool\" /><!-- s8) --> \nAdolfo[/quote:55x3nef6]\n\n Adolfo ,\n \n Please help me again . In SqLite.org site they are providing only SqLite ODBC for connection . I downloaded this , hoping that with ODBC drivers will be and OLE DB Provider . Sorry , but here was only ODBC install package . So at this moment I can't understand what you are using . ODBC it's one thing , ADO - another . Both I know and want to accurate - you are talking about something that : cConnectionString := \"DSN=[color=#BF0000:55x3nef6]odbc name[/color:55x3nef6] ;UID=YOURUSERID;PWD=YOURPASSWORD;\" ?\n\n With best regards ![/quote:55x3nef6]\n\n\nSimplier than that...\n\nInstall the ODBC SQLITE CLIENT.. and that's all, no need to configure DSN or anything.\nIn your connection string use this..\n[code=fw:55x3nef6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <br /><span style=\"color: #00C800;\">TRY</span><br /> oCn:= CreateObject<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"ADODB.Connection\"</span> <span style=\"color: #000000;\">)</span><br /> oCs:= <span style=\"color: #ff0000;\">\"DRIVER={SQLite3 ODBC Driver};Database=\"</span> + Alltrim<span style=\"color: #000000;\">(</span>cPathDb<span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"Tele.db\"</span><br /> oCn:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">(</span>oCs<span style=\"color: #000000;\">)</span><br /> Retorno:=.T.<br />CATCH oErr<br /> MSGAlert<span style=\"color: #000000;\">(</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;\">)</span><br /> Retorno:=.F.<br />END<br /> </div>[/code:55x3nef6]\n\nIn fact, you can configure you application install, to do both things, Install the Odbc Client in silent mode and your application, and there'll be no need to configure anything else.\n\nSend me a mail.\n\nFrom Chile\nAdolfo",
"time": "21:46",
"topic": "Choosing SQL database ...",
"username": "Adolfo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rimantas;\n\nAFAIK -SQLite is NOT client-server. It can't be compared to ADS unless you are comparing to the local version. Check on the SQLite website their recommended use. It is pretty much to be used by apps running on the server itself (like a php webpage). Otherwise it is subject to corruption just like any non client-server database.\n\nOne advantage with ADS is that you do NOT need ADO, or change any code. You may continue with \n\ndbusearea()\ndbEval()\nBrowse()\nodbf:skip()\n(calias)->goto()\netc...\n\nAnd if you prefer SQL statements, then: \n\ncSql := \"Select * from customers where zipcode = '12345' \"\nAdsExecuteSqlDirect( cSql )...\n\ncSql := \"Update customers set zipcode = '12345' where zipcode is null\"\nAdsExecuteSqlDirect()...\n\nIf your customer grows or the opportunity arises to sell to a bigger customer, then all you do is sell them the server version. No code changes. Access your dbf/adt tables via internet or LAN, all the same, just change ads.ini.\n\n\nReinaldo.",
"time": "22:35",
"topic": "Choosing SQL database ...",
"username": "reinaldocrespo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo...\n\nI like this kind of \"guerras santas\"... but here you have something to consider this self-contained, serverless, zero-configuration, transactional SQL database engine.\n\n<!-- m --><a class=\"postlink\" href=\"http://www.sqlite.org/different.html\">http://www.sqlite.org/different.html</a><!-- m -->\n\nOff Course you can't compare a dozens thousands dollars product with a FREE one.\nAnd mainly... this one was very difficult to understand to me... but.. if you are going to use SQL, do it in SQL, forget about USE, DBEval or whatever CLIPPER like command.. and what for you is an advantage... for me is not... FORGET ABOUT DBF's.. so ADS with support for that.. is not a characteristic to be considered.\n\nI don't know where did you get that SQLITE gets corrupted.. although in their WEBSITE they said that in very rare and strange situations it would happen.. doing a google only shows problems with bad code or bad installations.. not bad product.\n\nAlso you have to consider end user cost... \n\nFinally... if you read Rimantas NEEDS.. Sqlite fullfils it with no problem.... ADS will be a big white elephant for such a project.\n\nMy 2.5 cents\n\n( although I would've use Mysql ) <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> \n\nFrom Chile\nAdolfo",
"time": "02:15",
"topic": "Choosing SQL database ...",
"username": "Adolfo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Adolfo;\n\nThere is actually a word for \"guerra santa\" - Jihad!\n\nWhat SQLite offers for free, is exactly what ADS local offers for free --and you are **not** forced to use the traditional dbf navigation (dbskip(), etc...).\n\nI'm not saying SQLite is a bad product. You are misquoting here or at least misunderstanding. Check my post again. For NON-Client-Server databases, SQLite is as good as ADS on local mode. AMOF; I can't see how SQLite offers any advantage over ADS-local --unless not having the option to navigate the database is an advantage... or perhaps NOT having the option to leverage your dbf-navigation knowledge is an advantage...\n\nIf you ever want to market your application to bigger customers with hundreds of users or wish to move to client-server technology, you have a choice to move to client server mode with ADS (no code changes). No choice with SQLite. Simply no client-server architecture. Period.\n\nOn the subject of ISAM Vs. SQL, keep in mind that there are things you can do with ISAM that simply can't be done with SQL. Try browsing (or incremental seeking) a dbf (a table in sql language) with 1million records. There are many other situations where ISAM is faster and/or logical than SQL. Have you seen a 200 line SQL script? Some operations, I rather use dbseek()... Granted; there are operations that are more logical and/or faster when performed via SQL statement. But with ADS you keep ISAM while adding SQL. win-win situation.\n\nI think you are also mistaken about the cost of ADS-Server. I've never seen a ADS-Server version that costs \"dozens thousands dollars\". Not even for more than 250 users. And again, ADS-Local (non-client-server) is free. \n\nYour 2 cents + my 2 cents = 4 cents (or maybe more....?)\n\n\nReinaldo.",
"time": "02:50",
"topic": "Choosing SQL database ...",
"username": "reinaldocrespo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Mr.Adolfo,\n\n[quote:2o1foa37]In fact, you can configure you application install, to do both things, Install the Odbc Client in silent mode and your application, and there'll be no need to configure anything else.[/quote:2o1foa37]\n\nIf you don't mind, I would like to know more about this. <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> . I am using MySQL. If this is possible then we will be able to install MySQL ODBC driver along with the application. So this will rule out one of the disadvantages of using databases other than MS SQL Server that Mr.Rick has already pointed out.\n\n[b:2o1foa37]Quote by Mr.Rick[/b:2o1foa37]\n[quote:2o1foa37]The reason I like SQL Server is because you do NOT need .net framework .. you do NOT need any client like Oracle, dB2 or some other SQL flavors which REQUIRE a run-time client. If I have to develop an application that needs to run on any Windows computer .. I do not want to have to make sure there is an ODBC or a run-time ( .net framework ) client configured on each pc .. All windows operating systems have native connectivity to MS Sql server .. right out of the box .. nothing to configure .. it just runs with your ADO code.\n[/quote:2o1foa37]\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",
"time": "05:30",
"topic": "Choosing SQL database ...",
"username": "anserkk"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"reinaldocrespo\":d49fg41b]Adolfo;\n...I can't see how SQLite offers any advantage over ADS-local ...[/quote:d49fg41b]\n\n Reinaldo ,\n\n I'm rewroting old project . The main requirement - to view data remotely , from others divisions . About 5-6 years ago I tried ADS local with this project and can say that this worked very slowly , so I stayed with DBF+CDX . So your suggestion to use ADS local in network enviroment isn't good . About 1 year ago I wroted some parts with FireBird and ADO . It worked fine , very fast . So I decided to change DBFs with SQL and , as Adolfo said , forget DBFs .. <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> If SQLite will not fullfit our needs then I'll adopt this with FireBird . \n\n With best regards !",
"time": "07:01",
"topic": "Choosing SQL database ...",
"username": "Rimantas"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Reinaldo,\n\n>Your 2 cents + my 2 cents = 4 cents (or maybe more....?)\n\nI think you have to make a division:\n\nYour 2 cents / my 2 cents = 1 and this is the answer or solution \n\nOne only has to know how to divide [i:hyss7l6v]2 cents [/i:hyss7l6v]by [i:hyss7l6v]2 cents.[/i:hyss7l6v] <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \n\nI would like to make some tests with ADS. Is it really as easy as you wrote – download the free version and change the RDD to ADS?\nBest regards,\nOtto",
"time": "10:28",
"topic": "Choosing SQL database ...",
"username": "Otto"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo...\n\nPLEASE.. forget about DBF's ( although I'm using them with no problems in ALL my products ), you can't compare SQL to DBF. not even ADS. SO knowing how to manage a DBF is worthless in order to work with SQL, thay are completely separate ways of working with data. I've done incremental searching with Mysql, Paging, Scipting.. and I don't use hundreds of lines.. just ADO features and STANDARD SQL.\n\nADS is a good product, perfect if you want to keep working with dbf's, but it can't be compared to SQL, and DBF LOGIC is quite oldfashioned. ADS Local is not Transactional. There's no HOSTING offering ADS, you'll have to mount your own server to have it working. ADS 5 users is sold in 844€ ( better no ask for a 25 user ), MYSQL ENTERPRISE BASIC ( Enough for 250 users ) costs 475€ ( FREE is you hire a HOSTING )\nSo IMO for large amount of users.. go SQL.\n\nAbout SQLITE, perfect, SQL for small LANs, all the knowledge on SQL can be used on any large DB, a completely UPTODATE knowledge.. and with ADO... better... you can use ADO with all WEB programming languajes.\n\nIf ADO will disappear with new Windows Versions.... I doubt it. It was included in Vista, and in 7 too.. I use it in my \"developer machine\".\nADO.NET.. some differences, 3 instances (SQL Connection, SQLADAPTER and DATASET ) instead of 2 ( Connection and RECORSET ) , and many many more methods and datas.\n\nFrom Chile..a SQL FANBOY... <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> \nAdolfo\n\n( just kidding <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: --> )",
"time": "13:48",
"topic": "Choosing SQL database ...",
"username": "Adolfo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Adolfo\":1nrks2ah]\n...\nPLEASE.. forget about DBF's ( although I'm using them with no problems in ALL my products ), you can't compare SQL to DBF. not even ADS. SO knowing how to manage a DBF is worthless in order to work with SQL, thay are completely separate ways of working with data. I've done incremental searching with Mysql, Paging, Scipting.. and I don't use hundreds of lines.. just ADO features and STANDARD SQL. \n...\n[/quote:1nrks2ah]\n \n Big + for Adolfo ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\n Regards !",
"time": "14:04",
"topic": "Choosing SQL database ...",
"username": "Rimantas"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rimantas;\n\nI wonder what kind of tests you did that made ads local \"slow\"... \n\nA frequent mistake people make is forgetting that when you connect across the internet speed is not the same as on a local LAN. Therefore you must avoid full dbf \"browses\" (which you can't do with SQL anyway). Instead you work with sets of data. If you only bring a cross 1 record and its children (on a relation), that data will probably travel in less than 1 second over regular DSL.\n\nIn other words; when working with an internet connection to ADS-DBF/ADT tables you have to avoid this:\n\nDbusearea( ::lNew ,::cRDD ,::cFileName ,::cAlias , ::lShared ,::lReadonly )\nBrowse()\n\nThat works fine on a LAN but not on a WAN over internet.\n\nIf instead you do this:\n\nDbusearea( ::lNew ,::cRDD ,::cFileName ,::cAlias , ::lShared ,::lReadonly )\n( ::cArea )->( dbSeek( Key ) )\n? ( ::cArea )->Name\n\nor\n\nreplace ( ::cArea )->Name With \"First-Name\"\n\nThat happens in less than a second. As soon as I have a chance, I'm going to spend some time writing a small fw app to show how to connect and work with ADS-DBF-ADT tables using ISAM and SQL over an internet connection.\n\nIn the interest to help, in the meanwhile, if anyone is interested I can provide you with a user name and password to connect to ADS-DBF/CDX tables using a php web-app on a browser where my customers currently create service tickets. I will also show the php code where connection and queries to the actual DBFs happens. The code is very similar to what a fwh win32 app would also be.\n\nI hope that helps,\n\n\n\nReinaldo.",
"time": "14:11",
"topic": "Choosing SQL database ...",
"username": "reinaldocrespo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote:1xu36l2d]PLEASE.. forget about DBF's ( although I'm using them with no problems in ALL my products ), you can't compare SQL to DBF. not even ADS. [/quote:1xu36l2d]\n\nBut you forget; ADS IS SQL.\n\n[quote:1xu36l2d]SO knowing how to manage a DBF is worthless in order to work with SQL, [/quote:1xu36l2d]\nWith ADS you can work ISAM and SQL in the same app... so nothing is worthless.\n\n[quote:1xu36l2d] I've done incremental searching with Mysql, Paging, Scipting.. and I don't use hundreds of lines.. just ADO features and STANDARD SQL.[/quote:1xu36l2d]\nI don't think so my friend.\n\nOk, so you have a 250k records table. And you what to display the full table to do an incremental search. As you type the bar moves to the nearest record. For argument's sake let's say you are displaying 250k customers with their address and telephones. It is ordered alphabetically. You type \"R\" and the bar moves to Ramos, then you type \"i\" and the bar moves to Rivera, then you type \"o\" and the bar moves to \"Rios\"... Or better yet, after typing the first \"R\", press the up arrow key. You should move to something like \"Quesada\". And you do with with 250k records using SQL ... I don't think so. In order to imitate an incremental search you would first have to fetch the whole table: \"Select * from customers\", load that into a memory array (or use the returning cursor) and now you can do the incremental search, or you wait for the first keystroke (\"R\") and you execute \"Select * from customers where lastname between 'Ra' and 'Rz'\" and now display that on a browse. In the last case, you are not display the whole table, so forget about moving up with the arrow key to anything previous to the first \"R\" last name. This is ok when working with a web app. But for a win32 app..., very limiting. There! the power of ISAM.\n\n[quote:1xu36l2d]...if you want to keep working with dbf's, but it can't be compared to SQL, and DBF LOGIC is quite oldfashioned. ADS Local is not Transactional.[/quote:1xu36l2d]\n\nOld-fashioned... hum... So is RDDs but boy they are so much faster than any .net or ADO or ODBC or any of them combined. That actually give small shops like ours an advantage. Nothing is faster than DBF/CDX ( or ADS/ADI for that matter).\n\n[quote:1xu36l2d]There's no HOSTING offering ADS, you'll have to mount your own server to have it working. [/quote:1xu36l2d]\nNow, that's a good point. You are taking about web access. You are right here. Not only that, you do have to recompile php if working with a linux server. If you are developing web-apps exclusively and no win32 apps to touch the data from within the LAN... well that's precisely where sqlite is recommended.\n\n[quote:1xu36l2d]ADS 5 users is sold in 844€ ( better no ask for a 25 user )[/quote:1xu36l2d] I'm quite sure that my customers pay around $500 for a 5 user and $5,770 for 250 users (that's US dollars).\n\n[quote:1xu36l2d]So IMO for large amount of users.. go SQL.[/quote:1xu36l2d]\nRight. And ADS is SQL. \n\n[quote:1xu36l2d]About SQLITE, perfect, SQL for small LANs, all the knowledge on SQL can be used on any large DB, a completely UPTODATE knowledge.. and with ADO... better... you can use ADO with all WEB programming languajes.[/quote:1xu36l2d]\nNo different than ADS; which is my point. With ADS you can use ODBC/ADO/.NET/php/Java/Perl...\n\n[quote:1xu36l2d]If ADO will disappear with new Windows Versions.... [/quote:1xu36l2d]\nI'll tell you what will disappear: RDDs! (if user support continues to withdraw).\n\nThank you for your reply. I'm not taking merits away from SQL set based transactions. I'm very happy I was introduced to SQL and pleased with its results. BTW- I did it by using ADS and slowly changing some parts to SQL. I was not up to completely re-writing my apps. Your comments are quite in tune with my own. My point is that (1) ISAM is also a good thing (2) ADS is the only SQL with ISAM combined and (3) The local version is free and the client-server version (especially for 250 users) is worth paying for.\n\nThere is a ADS FWh user in Chile - Patricio. Do you know him?\n\nReinaldo.",
"time": "15:21",
"topic": "Choosing SQL database ...",
"username": "reinaldocrespo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Adolfo\":37huoyyq]I've done incremental searching with Mysql, Paging, Scipting.. and I don't use hundreds of lines.. just ADO features and STANDARD SQL.[/quote:37huoyyq]\n\nI strongly doubt of this. Please can you show us how do you make incremental searching using ADO and [b:37huoyyq]standard[/b:37huoyyq] SQL?\n\n[quote=\"Adolfo\":37huoyyq]and DBF LOGIC is quite oldfashioned.[/quote:37huoyyq]\n\nPlease don't reverse the reality. SQL is much older than DBF's logic.\n\nEMG",
"time": "15:53",
"topic": "Choosing SQL database ...",
"username": "Enrico Maria Giordano"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "EMG...\n\nPreparing a small sample with Incremental search ( and paging if I have time)\nGive some hours\n\nAdolfo",
"time": "16:35",
"topic": "Choosing SQL database ...",
"username": "Adolfo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you. But please notice that paging has nothing to do with incremental searching.\n\nEMG",
"time": "17:27",
"topic": "Choosing SQL database ...",
"username": "Enrico Maria Giordano"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"reinaldocrespo\":1i5exakx]Rimantas;\n\nI wonder what kind of tests you did that made ads local \"slow\"... \n\n[/quote:1i5exakx]\n\n Yes , Reinaldo , it's very slow . And that in network enviroment . At first I did localy at own PC . It seems that will be OK - but here I was running as one user at the same PC ... Then I put this on server of enterprise . After some hours they called me and said that program is working very slow .... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> . I tested in enterprise - if are <= 2 users , then it can suffer . But if are working more than 2 users - the speed is downing very very . So I returned to DBF+CDX without ADS local ... Excuse , Reinaldo , but mine impresion about ADS local isn't good ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\n Adolfo , did you received mine e-mail ? <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> \n\n Regards !",
"time": "18:09",
"topic": "Choosing SQL database ...",
"username": "Rimantas"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "To All\n\nI use both ADS for .dbf client\\server .. dbfcdx for small single installations .. and SQL Server for 'enterprise' lan\\wan applications.\n\nI don't think there is 'one size fits all' and depending on your target audience .. DBFCDX in a small lan environment seems to work best for me.\n\nI do like ADS .. I still use it, even for Enterprise solutions .. however, .dbf is considered in many CIO's eyes something along the lines of 'desktop' database .. akin to MS Access or even 'clipper' .. \n\nPlease do not get me wrong .. I am not knocking any .dbf platform nor am I saying anything bad about 'clipper' .. but the conotations of those products in todays marketplace are not what many CIO's even think about when either you approach them to sell your product .. nor do you find many CIO's even turn over those rocks ( .dbf ) when they plan on developing a large 'in-house' project.\n\nI have fought this battle for many years .. and I like Harbour\\xHarbour and where 'open source' is taking the IT industry .. forcing these close minded' CIO's to re-think their expensive dB2's and Oracles databases of the world.\n\nFor me .. I like Sql Server because ADO is supported nicely with Windows 7 and you do not need any client or run-time or dot net to connect to Microsoft's Sql Server .. \n\nDepending on your application and your targeted client .. Enterprise = sql server .. large to medium client\\server = ADS .. small business with a small local lan = dbfcdx.\n\nRick Lipkin",
"time": "18:58",
"topic": "Choosing SQL database ...",
"username": "Rick Lipkin"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick;\n\nWell said. For a CIO, it is easy. Go with the most expensive and cover you ass. Run no risks. Who's ever been fired for choosing Oracle?\n\nOn the SQL list, I'm going to add one more: iAnywhere SQL. Believe it or not, this is the most widely used SQL in the market today. It is imbedded most data apps on mobile devices (blackberry, iphone), on most routers (including Cisco), and even on over the counter win32 apps (such as QuickBooks). \n\nLast month I saw a demo using iAnywhere SQL replicating data from a blackberry to a windows server. It replicates data to just about any SQL (ms, oracle, ASE ). It looked very very impressive. But I have no experience using it.\n\n\nReinaldo.",
"time": "20:11",
"topic": "Choosing SQL database ...",
"username": "reinaldocrespo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi everyone..\n\nHere you hace a sample on Incremental search with ADO, TADOBASE ( my class, a clone of tDatabase ) and MYSQL.\nYou need to have Mysql ODBC CLient 5.1\n\n<!-- m --><a class=\"postlink\" href=\"http://dev.mysql.com/downloads/connector/odbc/5.1.html\">http://dev.mysql.com/downloads/connector/odbc/5.1.html</a><!-- m -->\n\nThe test.. just unrar and execute....\n<!-- m --><a class=\"postlink\" href=\"http://200.72.140.34/privado/adobase/test.rar\">http://200.72.140.34/privado/adobase/test.rar</a><!-- m -->\n\nIt's a routine taken from one of my systems... so it may have some bugs... My server is not a big one, and I have reduce \"Mysql\" connections from outside the lan.\n\nJust begin typing wahtever you want.. see the cursor move... and.... REINALDO... use the navigation keys whenever you wanted.\n\nAny comment or suggestion... are welcome.\nMy class is also available.. see on the spanish forums.\n\nFrom Chile\nAdolfo",
"time": "20:19",
"topic": "Choosing SQL database ...",
"username": "Adolfo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sorry, but I don't know what to do with your EXE. I stated that you simply can't make incremental searching using standard SQL. If you think different then you have to demonstrate it showing us how to do it.\n\nEMG",
"time": "21:52",
"topic": "Choosing SQL database ...",
"username": "Enrico Maria Giordano"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Enrico Maria Giordano\":yp6s1t04]Sorry, but I don't know what to do with your EXE. I stated that you simply can't make incremental searching using standard SQL. If you think different then you have to demonstrate it showing us how to do it.\n\nEMG[/quote:yp6s1t04]\n\nEnrico.. it's simple.... UNRAR it, you get an EXE... EXECUTE it... and use the sample... Type anything.. and see... IS IT TOO HARD ?\n... or if you prefer.. I make a video.. and you just sit and see.\n\nI ABSOLUTELY THINK DIFFERENT.. but I don't have to demostrate anything to you... I USE INCREMENTAL SEARCH WITH ADO AND MYSQL.. that's a fact... and I don't have to show you how... think a bit, you'll get it after some time...\n\nTheres plenty of info and docs on ADO in the web, do as I did.. read, try, investigate... and you are done... just because you were unable to do it... doesn't mean Is imposible.\n\nFrom CHILE\nAdolfo",
"time": "21:58",
"topic": "Choosing SQL database ...",
"username": "Adolfo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Adolfo;\n\nI can't find what to do with an .exe either. I'm sorry. But I'll keep trying in the next few days. Don't be offended, please. Maybe you have some kind of special trick. But I don't think you can do incremental search using good and plain SQL. I don't think there's one single app out there that does it with SQL statements unless, of course, you fetch the whole table across the wire... and then either work with the memory array or navigate ISAM style (you'll need a skip(-1) ).\n\nIn the SQL model, there is no record before or after any other record. There isn't a next or a previous record. Thus, there is no skip() or skip(-1). Now, you can fetch a set and with the set you do have next and previous. But an SQL is not sequential and there is no record numbers either (recno() ).\n\nDo share the the code. Just a short self-contained or code-snippet. Pure and simple SQL.\n\nAnd, again; please don't be offended. I'm not daring you. Take this as a learning/idea exchange. I'm sure I'll learn some from your code. I'll also share some SQL triggers that I'm currently using with ADS if you like and then translate that to navigational commands for us to compare. I'm thinking that when we say \"incremental-search\" we are not speaking about the same thing.\n\n... and, before I forget, thank you for taking the time and effort to write your sample even though I haven't been able to use it just yet (but hopefully I will). \n\n\n\nReinaldo.",
"time": "22:37",
"topic": "Choosing SQL database ...",
"username": "reinaldocrespo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Reinaldo...\n\nDid you get an error message, Does it connect,is there a MSGALERT()... please send me the error.log...\n\nIf not.. it should be an UPX problem, cause I compress the exe with it...\n\nGonna upload it tomorrow...\n\n.. and as I told you.. I USE INCREMENTAL SEARCH WITH ADO AND MYSQL... See my first post referencing it.\n\nAdolfo",
"time": "22:53",
"topic": "Choosing SQL database ...",
"username": "Adolfo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Adolfo,\n\nI took a look at your TADOBase class. It seems you are using a recordset so that you can also use methods like skip(). Granted this will work and can be used to do incremental searching.\n\nThe issue the Enrico was making is that you have to download the entire recordset in order to do incremental searching. Except for very small recordsets (less than a browseful) this will be slower than using a DBF. When browsing a DBF you only read as many records as it takes to fill the browse. When using a recordset you have to read every record in the table before you can start the browse (or at least all the records that you plan to be able to browse through).\n\nLet's look at an example. Say you have a database containing 10,000 records and a browse showing 10 records. With SQL and recordsets you will have to read all 10,000 records across the network before you can display the first 10 records in the browse. With DBFs you only have to read 10 records across the network, then you can display the browse.\n\nReinaldo was making the point that with ADS you can use SQL when it is the better solution and still use DBF syntax when it is the better solution--both with the same database and in the same application.\n\nRegards,\nJames",
"time": "22:56",
"topic": "Choosing SQL database ...",
"username": "James Bott"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Adolfo,\n\nPerhaps I was hasty in my assumption that you were reading the whole database into the recordset. I did see in the New method that the default was to read the entire database.\n\nI have looked at your TADOBase class some more and it appears that you are using the LIMIT and OFFSET clauses of the SELECT statement to create smaller recordsets. Is that true? Are these recordsets the size of the browse, so that when you page-up and page-down (in the browse) you get a new recordset? Perhaps you could explain this in more detail.\n\nI guess for an incremental search you could do a SELECT... with a LIMIT the size of the browse and thus create a new recordset for each keystroke of the search.\n\nFor a regular browse, for each up and down arrow (causing a movement to a record outside the browse) you would have to create a new recordset. Is this what you are doing?\n\nI did work similar to this some time ago when I discovered the LIMIT and OFFSET clauses. Unfortunately not all SQL languages support these clauses.\n\nRegards,\nJames",
"time": "00:05",
"topic": "Choosing SQL database ...",
"username": "James Bott"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Adolfo; I tested the app. Thank you for sending it and for trying to share. I'm not sure if I should answer. I think you are missing the point. Which is ok. I often do myself. But, I’m afraid there might be some readers being mislead about what SQL is good and not so good for. I'll leave it at that.\n\nNow, on the subject of posting some sample SQL. Here is a trigger that I'm currently using with ADS (local and remote) imbedded into a table. It executes “On-Update” of any record:\n[code=fw:2l9dkc5l]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> declare @is_email LOGICAL;<br /> declare @email CHAR<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">100</span><span style=\"color: #000000;\">)</span>;<br /><br /> declare @is_hosp_email LOGICAL;<br /> declare @hosp_email CHAR<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">100</span><span style=\"color: #000000;\">)</span>;<br /> <br /> declare @old <span style=\"color: #0000ff;\">cursor</span> as <span style=\"color: #0000ff;\">select</span> * <span style=\"color: #0000ff;\">from</span> __old; <br /> declare @<span style=\"color: #00C800;\">new</span> <span style=\"color: #0000ff;\">cursor</span> as <span style=\"color: #0000ff;\">select</span> * <span style=\"color: #0000ff;\">from</span> __new;<br /><br /> open @old; <br /> fetch @old;<br /> open @<span style=\"color: #00C800;\">new</span>; <br /> fetch @<span style=\"color: #00C800;\">new</span>;<br /> <br /> <span style=\"color: #00C800;\">if</span> @<span style=\"color: #00C800;\">new</span>.signed = <span style=\"color: #00C800;\">TRUE</span> AND @old.signed = <span style=\"color: #00C800;\">FALSE</span> then<br /> <br /> @is_email = <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">SELECT</span> is_email <span style=\"color: #0000ff;\">from</span> doctors <span style=\"color: #0000ff;\">where</span> doctors.<span style=\"color: #0000ff;\">id</span> = @<span style=\"color: #00C800;\">new</span>.refer_id <span style=\"color: #000000;\">)</span>; <br /> @email = <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">SELECT</span> email <span style=\"color: #0000ff;\">from</span> doctors <span style=\"color: #0000ff;\">where</span> doctors.<span style=\"color: #0000ff;\">id</span> = @<span style=\"color: #00C800;\">new</span>.refer_id <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> @is_email = <span style=\"color: #00C800;\">TRUE</span> AND @email IS NOT <span style=\"color: #00C800;\">NULL</span> then<br /> <br /> INSERT INTO plmail <span style=\"color: #000000;\">(</span> pathno, doc_id, send_to <span style=\"color: #000000;\">)</span> <br /> VALUES <span style=\"color: #000000;\">(</span> @<span style=\"color: #00C800;\">new</span>.pathno, @<span style=\"color: #00C800;\">new</span>.refer_id,<br /> <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">SELECT</span> email <span style=\"color: #0000ff;\">FROM</span> doctors <br /> <span style=\"color: #0000ff;\">WHERE</span> doctors.<span style=\"color: #0000ff;\">id</span> = @<span style=\"color: #00C800;\">new</span>.refer_id <br /> AND doctors.is_email = <span style=\"color: #00C800;\">TRUE</span> <br /> AND doctors.email IS NOT <span style=\"color: #00C800;\">NULL</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>; <br /> <br /> INSERT INTO plmail <span style=\"color: #000000;\">(</span> pathno, doc_id, send_to <span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #0000ff;\">SELECT</span> c.pathno, c.copyto, doc.email <span style=\"color: #0000ff;\">FROM</span> copyto c <br /> <span style=\"color: #0000ff;\">LEFT</span> <span style=\"color: #0000ff;\">JOIN</span> doctors doc <span style=\"color: #0000ff;\">ON</span> doc.<span style=\"color: #0000ff;\">id</span> = c.copyto<br /> <span style=\"color: #0000ff;\">WHERE</span> c.pathno = @<span style=\"color: #00C800;\">new</span>.pathno <br /> AND doc.is_email = <span style=\"color: #00C800;\">TRUE</span> <br /> AND doc.email IS NOT <span style=\"color: #00C800;\">NULL</span> ;<br /> <br /> <span style=\"color: #00C800;\">endif</span> ;<br /><br /> <span style=\"color: #00C800;\">if</span> @<span style=\"color: #00C800;\">new</span>.facility IS NOT <span style=\"color: #00C800;\">NULL</span> then <br /> @is_hosp_email = <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">SELECT</span> TOP <span style=\"color: #000000;\">1</span> is_email <span style=\"color: #0000ff;\">from</span> hospital <span style=\"color: #0000ff;\">where</span> hospital.<span style=\"color: #0000ff;\">name</span> = @<span style=\"color: #00C800;\">new</span>.facility <span style=\"color: #000000;\">)</span>; <br /> @hosp_email = <span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">SELECT</span> TOP <span style=\"color: #000000;\">1</span> e_mail <span style=\"color: #0000ff;\">from</span> hospital <span style=\"color: #0000ff;\">where</span> hospital.<span style=\"color: #0000ff;\">name</span> = @<span style=\"color: #00C800;\">new</span>.facility <span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> @is_hosp_email = <span style=\"color: #00C800;\">TRUE</span> AND @hosp_email IS NOT <span style=\"color: #00C800;\">NULL</span> then <br /> INSERT INTO plmail <span style=\"color: #000000;\">(</span> pathno, doc_id, send_to <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">SELECT</span> @<span style=\"color: #00C800;\">new</span>.pathno, h.passwd, h.e_mail <span style=\"color: #0000ff;\">from</span> hospital h<br /> <span style=\"color: #0000ff;\">WHERE</span> h.<span style=\"color: #0000ff;\">name</span> = @<span style=\"color: #00C800;\">new</span>.facility ;<br /> <span style=\"color: #00C800;\">endif</span>;<br /> <span style=\"color: #00C800;\">endif</span>;<br /> <span style=\"color: #00C800;\">endif</span>;<br /><br /> <span style=\"color: #00C800;\">if</span> @<span style=\"color: #00C800;\">new</span>.signed = <span style=\"color: #00C800;\">FALSE</span> AND @old.signed = <span style=\"color: #00C800;\">TRUE</span> then<br /> DELETE <span style=\"color: #0000ff;\">FROM</span> plmail <br /> <span style=\"color: #0000ff;\">WHERE</span> pathno = @<span style=\"color: #00C800;\">new</span>.pathno <br /> AND DateTime_Sent IS <span style=\"color: #00C800;\">NULL</span> ;<br /><br /> DELETE <span style=\"color: #0000ff;\">FROM</span> pthreps <br /> <span style=\"color: #0000ff;\">WHERE</span> pathno = @<span style=\"color: #00C800;\">new</span>.pathno;<br /><br /> <span style=\"color: #00C800;\">endif</span> ;<br /> </div>[/code:2l9dkc5l]\n\nIt inserts a record into a table that acts as a queue any time a pathology report is signed. And removes the record from the queue if the pathology is \"un-signed\" (there is a grace period during which a Doctor may \"un-signed\" a pathology report). And now the ISAM-xharbour translation. I'll to avoid using a tdbf class (which would make it even simpler):\n[code=fw:2l9dkc5l]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">if</span> isSigned .and. !<span style=\"color: #000000;\">(</span>cArea<span style=\"color: #000000;\">)</span>->isSigned<br /> <span style=\"color: #000000;\">(</span>doc<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbseek<span style=\"color: #000000;\">(</span> cid <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>doc<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> found<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> .and. <span style=\"color: #000000;\">(</span> doc<span style=\"color: #000000;\">)</span>->isEmail and. !empty<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> doc <span style=\"color: #000000;\">)</span>->eMail <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span> plMail <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbappend<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span> plMail <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbRecLock<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span> plMail <span style=\"color: #000000;\">)</span>->PathNo := cPathNo<br /> <span style=\"color: #000000;\">(</span> plMail <span style=\"color: #000000;\">)</span>->doc_id := cId<br /> <span style=\"color: #000000;\">(</span> plMail <span style=\"color: #000000;\">)</span>->Send_to := <span style=\"color: #000000;\">(</span>doc<span style=\"color: #000000;\">)</span>->email <br /> <span style=\"color: #000000;\">(</span> PlMail <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbUnlock<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">if</span> !isSigned .and. <span style=\"color: #000000;\">(</span>cArea<span style=\"color: #000000;\">)</span>->isSigned<br /><br /> <span style=\"color: #000000;\">(</span> plMail <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbseek<span style=\"color: #000000;\">(</span> cPathNo <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> PlMail <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> found<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span> PlMail <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbDelete<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #000000;\">(</span>pthreps<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbseek<span style=\"color: #000000;\">(</span> cPathNo <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>pthreps<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> found<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">(</span> pthreps<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> dbdelete<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">endif</span><br /> </div>[/code:2l9dkc5l]\n\nI'm probably forgetting to translate a few lines. But you can see what I mean. With ADS, triggers can only be written using SQL. So I had no choice here. And again, triggers are valid using the \"local\" (free) version also.\n\n-Adolfo; one last thing before I go. Please send me the source code to your sample app. Thank you: reinaldo punto crespo en gmail\nTake care,\n\n\n\nReinaldo.",
"time": "01:20",
"topic": "Choosing SQL database ...",
"username": "reinaldocrespo"
}
] |
Choosing SQL database ...
|
[
{
"date": "2009-10-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi all,\n\nAdolfo's ADO Incremental sample is working fine here for me.\n\nRegards\nAnser",
"time": "05:36",
"topic": "Choosing SQL database ...",
"username": "anserkk"
}
] |
Choosing SQL database ...
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.