DeleteSql property with stored procedure

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
BRUNO
Posts: 6
Joined: Sun 11 May 2008 05:32

DeleteSql property with stored procedure

Post by BRUNO » Sun 11 May 2008 20:29

Hello,
is possible to put on the property DeleteSql of a TIBCquery a call to a stored procedure and that this will be executed when delete some record?
if possible then,
What can I do?

thank you

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 12 May 2008 07:38

If you are working with InterBase or FireBird you can assign a SQL statement to the SQLDelete property like the following:

Code: Select all

EXECUTE PROCEDURE My_proc(:field1, :field2)
You can also generate this statement automatically. Open the query editor and go to the Stored Proc Call Generator tab; select the stored procedure name and 'Delete' statement type. Then click the 'Generate' button.

Post Reply