Search found 1891 matches

by marsupilami
01.05.2013, 10:44
Forum: ZeosLib 7.0 Stable Forum
Topic: Can anyone help me with this?
Replies: 10
Views: 1512

Hello Baldur2630,

could you please share the solution of your problem with us?
Best regards,

Jan
by marsupilami
30.04.2013, 16:36
Forum: 6.6 - stable
Topic: Charset Problem SQLite
Replies: 2
Views: 1893

Hello jjeffman,

could you post your code for saving and also for displaying the data in the database?
Best regards,

Jan
by marsupilami
30.04.2013, 16:33
Forum: ZeosLib 7.0 Stable Forum
Topic: Does the 7.0 stable version have support for C++Builder 6.0
Replies: 7
Views: 1082

Hello jjeffman,

normally I expect the Zeos 6 SQLite driver to do the encoding for you. Normally there should be no need for you to do a UTF8Encode. Did you try to use SQLite without UTF8Enceode, just as with every other regular database?
Best regards,

Jan
by marsupilami
30.04.2013, 16:29
Forum: MySQL
Topic: Storing Results from a query into Variables & Arrays.
Replies: 3
Views: 2031

Hello Baldur2630, just use an SQL query for the first one. Ie: var MyCount: Integer; begin ... Query.Close Query.SQL.Text := 'SELECT COUNT(DISTINCT types.typeid) as COUNTX FROM types'; Query.Open try MyCount := Query.FieldByName('COUNTX').AsInteger; finally Query.Close end; ... end; and for the Seco...
by marsupilami
30.04.2013, 16:20
Forum: MySQL
Topic: Problem with ZQuery
Replies: 3
Views: 2218

Hello alexcagliari, if you want to insert the data directly into the SQL then you need to encase the Strings in quotes: // inizia sql with ZQuery1 do begin Active:=False; SQL.Clear; SQL.Add('Insert into logbook(Callsign,Name,City) values(' + QuotedStr(Callsign.Text) + ',' + QuotedStr(Nome.Text) + ',...
by marsupilami
30.04.2013, 16:07
Forum: ZeosLib 7.0 Stable Forum
Topic: delphi xe3 + zeos, lan ok; internet not
Replies: 1
Views: 596

Hello Mamenhi, I am not sure how you plan to secure you data against people who want to read it. But nonetheless normally things should be like this: Install MariaDB on your internet host Open a port for communication in the firewall of the internet host set the hostname in TZConnection to that of y...
by marsupilami
30.04.2013, 16:04
Forum: ZeosLib 7.0 Stable Forum
Topic: [solved] unknown picture format
Replies: 10
Views: 2242

Hello kidjake28,

how do you put the pictures into the database and what kind of pictures are in it (jpeg, png, ...)?
If you say, it works for "sivak3 sqlite3 dbase vcl tools" then this seems to mean that it works for DBase which is a whole different story to SQLite?
Best regards,

Jan
by marsupilami
27.04.2013, 15:13
Forum: ZeosLib 7.0 Stable Forum
Topic: Intalling Zeos7 on Delphi7
Replies: 4
Views: 917

Hello contecavour65,

which version of Delphi do you use? Do you use the packages to install Zeos? If so - in which package does the error happen?
Best regards,

Jan
by marsupilami
22.04.2013, 10:03
Forum: Firebird
Topic: zeos sql query on firebird
Replies: 4
Views: 1975

Hello Chunkiebone, there are several ways to accomplish what you want. But the most easy way might be to use a stored procedure in Firebird that acts after insertion of a record to the payments table. For safeguarding the data you also might want to find a way to keep people from messing with the ba...
by marsupilami
21.04.2013, 22:13
Forum: Firebird
Topic: zeos sql query on firebird
Replies: 4
Views: 1975

Hello chunkiebone, I am not sure what you want to do but keeping the same data twice in the database is good way to get inconsistent data if you make a mistake. For querying two or more tables use the join synax. Assuming you have three tables: masterlist (id, client, address) daily_payments (date, ...
by marsupilami
12.04.2013, 15:15
Forum: ZeosLib 7.0 Stable Forum
Topic: Copy record to same table?
Replies: 2
Views: 1565

hmmm - something like that: procedure copyfields(Src, Target: TDataSet; Blacklist: String); var x: Integer; begin Blacklist := ';' + Blacklist + ';'; for x := 0 to Src.Fields.Count do begin // iterate over all source fields if Pos(';' + Src.Fields[x].FieldName + ';', Blacklist) <> 0 then begin //che...
by marsupilami
09.04.2013, 12:07
Forum: MySQL
Topic: Newbie question!
Replies: 5
Views: 2066

Hello Baldur2630,

if you don't close the connection explicitly it will close down itself when it gets destroyed by the destruction of the form, I guess. I prefer to close it down myself.
Best regards,

Jan
by marsupilami
09.04.2013, 12:05
Forum: ZeosLib 7.0 Stable Forum
Topic: tzconnection help
Replies: 2
Views: 599

Hello chunkiebone, Densetsu7,

Densetsu7s idea is corect except that with Firebird one never needs to share the database file because it is always only accessed by the Firebird server process.

Bet regards,

Jan
by marsupilami
04.04.2013, 08:54
Forum: MySQL
Topic: Newbie question!
Replies: 5
Views: 2066

Hello Baldur 2630, I am not used to MySQL this is what the manual says: http://dev.mysql.com/doc/refman/5.1/de/alter-table.html So this should translate to some sql like alter table mytable add constraint PK_mytable PRIMARY KEY (mycol1, mycol2); But usually I would think about adding the primary key...
by marsupilami
02.04.2013, 08:08
Forum: ZeosLib 7.0 Stable Forum
Topic: Problems with autocommit mode
Replies: 3
Views: 1035

Hello jpgonzalez,

could you please check wether this also happens in the current stable version 7.0.3?
Best regards,

Jan