Search found 9 matches

by touchring
03.07.2013, 15:07
Forum: ZeosLib 7.0 Stable Forum
Topic: [solved] Can't insert Unicode into MSSQL 2008 using v7.0.3
Replies: 9
Views: 5536

EgonHugeist wrote:touchring,

great! Hint: replace dwflags with 0 for function WideCharToMultiByte. It's so much faster!

Thanks for the hint. :)
by touchring
28.06.2013, 04:21
Forum: ZeosLib 7.0 Stable Forum
Topic: [solved] Can't insert Unicode into MSSQL 2008 using v7.0.3
Replies: 9
Views: 5536

Hi Michael, I've decided to encode in specific page code instead of UTF8 which appears to work for MSSQL and Zeoslib. function WideStringToString(const ws: WideString; codePage: Word): AnsiString; var l: integer; begin if ws = '' then Result := '' else begin l := WideCharToMultiByte(codePage, WC_COM...
by touchring
24.06.2013, 05:30
Forum: ZeosLib 7.0 Stable Forum
Topic: [solved] Can't insert Unicode into MSSQL 2008 using v7.0.3
Replies: 9
Views: 5536

Hi Michael, thanks. I'm able to get it work partially by encoding the data as UTF-8 (your code to encode the entire SQL string works also) however, SQL Server doesn't support UTF8 fully, so some characters are lost - http://stackoverflow.com/questions/12512687/sql-server-utf8-howto I've verified tha...
by touchring
23.06.2013, 15:34
Forum: ZeosLib 7.0 Stable Forum
Topic: [solved] Can't insert Unicode into MSSQL 2008 using v7.0.3
Replies: 9
Views: 5536

Hi EgonHugeist , thanks for replying. D7 doesn't support Wide-String/Memo fields. Thought TNT needs WideFields, so i'm starting from the premisse you made your own UTF8 hack? I've not made any changes to zeoslib. From what I know, D7 supports UTF-8 string manipulation and conversion from codepages t...
by touchring
22.06.2013, 07:33
Forum: ZeosLib 7.0 Stable Forum
Topic: [solved] Can't insert Unicode into MSSQL 2008 using v7.0.3
Replies: 9
Views: 5536

[solved] Can't insert Unicode into MSSQL 2008 using v7.0.3

Hi, I'm having trouble inserting Unicode into an SQL Server 2008 database using ZeosLib 7.0.3 and D7. I've created a simple test program that first inserts and then queries the inserted value to see if it has been inserted properly. The test table schema: CREATE TABLE [dbo].[incominglog]( [message] ...
by touchring
10.07.2010, 19:54
Forum: 6.6 - stable
Topic: Libraries for lipq.dll and libpq81.dll cannot be found
Replies: 8
Views: 5170

I've copied all the DLLs in C:\Program Files\PostgreSQL\8.4\bin to my delphi app folder, yet i am still getting this error -

Can't connect to database. None of the dynamic libraries can be found: libpq81.dll, libpq.dll

Any thoughts? Thanks. :)
by touchring
21.07.2009, 18:13
Forum: MS SQL Server
Topic: Connecting MSsql from Linux - libsybdb.so - problem
Replies: 7
Views: 6289

Hi, it has been 1 year since, does zeolibs still connect to mssql from linux platform? Thanks.
by touchring
02.07.2009, 07:29
Forum: SQLite
Topic: Crypted SQLite DB
Replies: 5
Views: 2484

I'm a newbie, the crypted version of SQLite costs $2000, which is a reasonable price for a commercial project considering that it covers future versions, but for my proof of concept personal project, this is beyond my budget. Has anyone research on an alternative, like say encrypting each field inst...
by touchring
01.07.2009, 20:27
Forum: 6.6 - stable
Topic: How to use SQLite with ZEOS in a transaction?
Replies: 4
Views: 1272

Don't leave ZConn.TransactionIsolationLevel to tiNone. Change it ( eg. readCommited ) or StartTransaction, Commit and Rollback methods wont work. Thanks, i've tried this method, it does speed up the inserts tremendously, but there's a problem - when i tried to do a select on the same table at the s...