Create procedure with Zeos on Delphi 7
Posted: 06.06.2008, 10:38
Hi all,
I'm trying to create procedure for Firebird with Zeos on Delphi 7.
I have tried to use ZQuery component with SQL:
When I try to ExecSQL the ZQuery, I got an error that said there was an access violation bla bla bla (not a Firebird SQL error, but a Delphi error).
I'm not sure whether I did this in the right way. Does anybody have an idea how I should create procedure at runtime?
Thanks in advance.
Albert
I'm trying to create procedure for Firebird with Zeos on Delphi 7.
I have tried to use ZQuery component with SQL:
Code: Select all
CREATE PROCEDURE UPDATE_PASIEN(
PAS_ID INTEGER,
PAS_NO_RM VARCHAR(20) CHARACTER SET NONE,
PAS_NAMA VARCHAR(255) CHARACTER SET NONE,
PAS_ALAMAT VARCHAR(255) CHARACTER SET NONE,
PAS_KELAMIN CHAR(1) CHARACTER SET NONE,
PAS_TGL_LAHIR DATE,
PAS_HAPUS CHAR(1) CHARACTER SET NONE)
AS
BEGIN
UPDATE PASIEN
SET
PAS_NO_RM = :PAS_NO_RM,
PAS_NAMA = :PAS_NAMA,
PAS_ALAMAT = :PAS_ALAMAT,
PAS_KELAMIN = :PAS_KELAMIN,
PAS_TGL_LAHIR = :PAS_TGL_LAHIR,
PAS_HAPUS = :PAS_HAPUS
WHERE
(PAS_ID = :PAS_ID);
END;
I'm not sure whether I did this in the right way. Does anybody have an idea how I should create procedure at runtime?
Thanks in advance.
Albert