oren Posted March 25, 2009 Posted March 25, 2009 Hello Thank you for this wonderful udf Its really useful I dont really know sql and I need to build a database in a language other then english (hebrew) , But when I try to INSERT new values in the database I get ! SQLite.au3 Error --> Function: _SQLite_Exec Anything that I can do? , Anyway to make it work with other languages other then English? Thanks.
ptrex Posted March 26, 2009 Author Posted March 26, 2009 (edited) @Oren I am not sure SQLite supports UNICODE. But a quick search on the net give you this workaround UNICODE workaround [EDIT] SQLite does support UNICODE but you need to set the paramaters correct before creating the DB. More info here : PRAGMA encoding; PRAGMA encoding = "UTF-8"; PRAGMA encoding = "UTF-16"; PRAGMA encoding = "UTF-16le"; PRAGMA encoding = "UTF-16be"; In first form, if the main database has already been created, then this pragma returns the text encoding used by the main database, one of "UTF-8", "UTF-16le" (little-endian UTF-16 encoding) or "UTF-16be" (big-endian UTF-16 encoding). If the main database has not already been created, then the value returned is the text encoding that will be used to create the main database, if it is created by this session. The second and subsequent forms of this pragma are only useful if the main database has not already been created. In this case the pragma sets the encoding that the main database will be created with if it is created by this session. The string "UTF-16" is interpreted as "UTF-16 encoding using native machine byte-ordering". If the second and subsequent forms are used after the database file has already been created, they have no effect and are silently ignored. Once an encoding has been set for a database, it cannot be changed. Databases created by the ATTACH command always use the same encoding as the main database. Regards, ptrex Edited March 26, 2009 by ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
oren Posted March 26, 2009 Posted March 26, 2009 @ptrex Thanks for the replay.. But sqlite can indeed store hebrew strings.. It was my fault wen i did GUICtrlRead ($ID) , I forgat to pur ' ' around it.. Sorry.
oren Posted March 27, 2009 Posted March 27, 2009 Well Now I really do have a problem the _SQLite_Open command does not allow me to open a database with a directory in language other then english (I'm trying from a hebrew directory..) #include <GUIConstantsEx.au3> #include <EditConstants.au3> #include <sqlite.au3> #include <sqlite.dll.au3> #include <Date.au3> #include <array.au3> _SQLite_Startup() ConsoleWrite(@scriptdir & @crlf ) _SQLite_Open(@scriptdir &"\Database.db") Exit the consolewrite command sow me C:\שמור\parkproject ! SQLite.au3 Error --> Function: _SQLite_Open --> Error: Library used incorrectly Anyway to fix this problem?
jchd Posted May 9, 2009 Posted May 9, 2009 Well Now I really do have a problem the _SQLite_Open command does not allow me to open a database with a directory in language other then english (I'm trying from a hebrew directory..) #include <GUIConstantsEx.au3> #include <EditConstants.au3> #include <sqlite.au3> #include <sqlite.dll.au3> #include <Date.au3> #include <array.au3> _SQLite_Startup() ConsoleWrite(@scriptdir & @crlf ) _SQLite_Open(@scriptdir &"\Database.db") Exit the consolewrite command sow me C:\שמור\parkproject ! SQLite.au3 Error --> Function: _SQLite_Open --> Error: Library used incorrectly Anyway to fix this problem?Hi, A complete solution for full Unicode support with SQLite (and Console) is well underway. A little patience will be soon rewarded. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
frankiben123 Posted June 25, 2009 Posted June 25, 2009 (edited) wow thank you guys....sales tracking software Edited June 25, 2009 by frankiben123
Zedna Posted June 25, 2009 Posted June 25, 2009 (edited) Thanks for SQLite UDF. I used it in several my projects and it's awesome!I have found very nice and free manager for SQLite databases - it's free also with sourcesSqliteman - Sqlite Databases Made Easyhttp://sqliteman.com/EDIT: screenshothttp://sqliteman.com/data/phoo/2007_08_26/sqliteman2.png Edited June 25, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Yoriz Posted June 25, 2009 Posted June 25, 2009 If your a firefox user theres a nice little sql addon that i useSQLite Manager Add on for Firefox GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF.
ptrex Posted June 29, 2009 Author Posted June 29, 2009 @allMy two cents :SqliteAdminMy Favorite :SqliteExplorerIncluding a report generator & script engine: Enjoy !!Regards,ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
Zebulon Posted July 23, 2009 Posted July 23, 2009 Hello Folks,my favorite SQLite manager:SQLite2009 Pro Enterprise Manager (freeware)http://osenxpsuite.net -> downloadGreetingsZebulon
ptrex Posted July 24, 2009 Author Posted July 24, 2009 @Zebulon, Great finding ! Thanks for sharing. Rgds, ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
Zedna Posted July 24, 2009 Posted July 24, 2009 @ptrex You may add all these links to SQLite tools/managers to your first post. It would be cool to have them all at one place. Resources UDF ResourcesEx UDF AutoIt Forum Search
jchd Posted July 29, 2009 Posted July 29, 2009 Also give a try to another excellent tool (Windoze only) :SQLite ExpertYou can download a free version which offers almost every option the payware Pro version has. Both versions are loaded with useful [and usable] features.The author is very friendly and responsive. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
ptrex Posted July 30, 2009 Author Posted July 30, 2009 @Zedna This is a good idea to move them all to the first post. But since the new forum upgrade, I can't add hyperlinks in posts anymore. The input box jumps out of reach beyond the screen limits. Regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
Zedna Posted July 30, 2009 Posted July 30, 2009 But since the new forum upgrade, I can't add hyperlinks in posts anymore. The input box jumps out of reach beyond the screen limits.Try to use another web browser: IE/Firefox/Opera/Chrome/...I used alternative browser too on old forum when I needed edit posts with more Autoit tags for example. Resources UDF ResourcesEx UDF AutoIt Forum Search
ptrex Posted August 8, 2009 Author Posted August 8, 2009 @Zedna Sorry for the late reply. But I was sitting on a Greec Island for a while. >_< I have already tested 2 different Browsers IE6 and Avant Browser. No success. Regards, ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
ValeryVal Posted August 13, 2009 Posted August 13, 2009 If your a firefox user theres a nice little sql addon that i use SQLite Manager Add on for FirefoxIt was used here, too. See here, please.AFireFox_Full can do this fine. There is just one task - The SQLite+WEB.Au3+FireFox trick to open SQLite Manager on server-side. The point of world view
oriolgs58 Posted January 24, 2010 Posted January 24, 2010 Hi, Where can I download the latest UDF/examples/...? I did grab the zip file with the dll stuff but on the first post if I click on downlaods it just brings me to the index page.. Thx
Zedna Posted January 24, 2010 Posted January 24, 2010 Hi,Where can I download the latest UDF/examples/...?I did grab the zip file with the dll stuff but on the first post if I click on downlaods it just brings me to the index page..ThxThis UDF is now part of standard Autoit's UDFsC:\Program Files\AutoIt3\Include\SQLite.au3Functions/examples are in Autoit's helpfile. Resources UDF ResourcesEx UDF AutoIt Forum Search
oriolgs58 Posted January 24, 2010 Posted January 24, 2010 Oh nice i hadn't realized we were talkinga bout the same UDF. Anway do we still need to register a bunch of dlls if we want to distribute this with our code?
Recommended Posts