Search found 11 matches

by Tommi
24.11.2008, 12:59
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: How to create a Stored Procedure at runtime ?
Replies: 5
Views: 2583

SOLUCTION FOUND!! I need use Zquery with ParamCheck property = false. I don't know what does ParamCheck mean but if I set it = false my code works correctly: StoProc:=TStringList.Create; StoProc.add('CREATE PROCEDURE NOME (CRCURL BIGINT) RETURNS (URL VARCHAR(100))'); StoProc.add('AS'); StoProc.add('...
by Tommi
24.11.2008, 12:39
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: How to create a Stored Procedure at runtime ?
Replies: 5
Views: 2583

I tried but I've same issue with ZSQLProcessor also. This is my code: StoProc:=TStringList.Create; StoProc.add('CREATE PROCEDURE NOME (CRCURL BIGINT) RETURNS (URL VARCHAR(100))'); StoProc.add('AS'); StoProc.add('DECLARE VARIABLE aCRCDominio BIGINT; '); StoProc.add('DECLARE VARIABLE aCRCPercorso BIGI...
by Tommi
22.11.2008, 22:02
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: How to create a Stored Procedure at runtime ?
Replies: 5
Views: 2583

How to create a Stored Procedure at runtime ?

I'm using Firebird, how can I create a Stored Procedure in a database with zeos ?
I tried using zquer.sql.add and zquery.exec but if the procedure is too long I receive error.

Thank You
by Tommi
19.11.2008, 12:14
Forum: Feature Requests
Topic: How can I perform SWEEP by zeoslib API ?
Replies: 4
Views: 2899

SWEEP is a Firebird command.

When you delete a field in Firebird, it don't really delete it but simply mark it as deleted.
When you do sweep Firebird cleans all not necessary data from database and defragment so you have better performance and less hard disk space required.
by Tommi
18.11.2008, 18:24
Forum: Feature Requests
Topic: How can I perform SWEEP by zeoslib API ?
Replies: 4
Views: 2899

How can I perform SWEEP by zeoslib API ?

I need to perform manually sweep my embedded database using zeoslib.

How can I ?

Thank you
by Tommi
18.11.2008, 18:22
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Read blob fields in Firebird.
Replies: 4
Views: 2727

seawolf wrote:It looks like Blob is a primary key or a part of .. why don't you use a generator instead of a Blob? (or something else)?
I finally solved my issue, thank you
by Tommi
07.11.2008, 09:24
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Read blob fields in Firebird.
Replies: 4
Views: 2727

Hi, You need to add more infos: 1. Which Zeos version do you use? 2. Is that field a not null field? 3. Silly questions .. is there some data on that field? and if you type "select * FROM mytable WHERE id=2" the result is one or more record? 4. Is a blob subtype 0 or 1? (I mean is a binar...
by Tommi
06.11.2008, 14:40
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Read blob fields in Firebird.
Replies: 4
Views: 2727

Read blob fields in Firebird.

If I do:

SELECT myblobvalue FROM mytable WHERE id=2

I receive a null answer.
How can I do ?

Thank You
by Tommi
21.07.2008, 17:46
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: How can I translate CAST ( ... AS BINARY) into Firebird lang
Replies: 1
Views: 618

How can I translate CAST ( ... AS BINARY) into Firebird lang

I used with mysql this syntax

CAST (0x... AS BINARY) but now with Firebird it doesn't work ?

How can I do ?

Thank you
by Tommi
11.07.2008, 19:14
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: ErrorCode -607 when creating tables (Lazarus+Zeos+Firebird)
Replies: 1
Views: 662

Probably I discovered what happened, using TZSQLMonitor I received this message: 2008-07-11 20.07.09 cat: Transaction, proto: firebirdd-2.0, msg: unsuccessful metadata update PROV2 CHARACTER SET ISO8859_1 is not installed, errcode: -607, error: This operation is not defined for system tables. How ca...
by Tommi
11.07.2008, 13:41
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: ErrorCode -607 when creating tables (Lazarus+Zeos+Firebird)
Replies: 1
Views: 662

ErrorCode -607 when creating tables (Lazarus+Zeos+Firebird)

I'm using firebirdd-2.0 protocol (but I tried also with 1.5), Zeos 6.5.1 and Lazarus 0.9.24. This is my code: procedure TForm1.Button2Click(Sender: TObject); begin ZConnection1.User:='sysdba'; ZConnection1.Password:='masterkey'; if not ZConnection1.Connected then begin ZConnection1.Database := 'db1....