When to call Prepare/Unprepare for stored procedures
Posted: Wed 03 Feb 2010 21:29
Hi all,
In my application, I have stored procedures (TIBCStoredProc) that are created dynamically when certain forms are created. They are only freed when the form is destroyed.
The stored procedures get call multiple times (hundreds, if not thousands).
My question is, when should I call the prepare/unprepare methods? I can't seem to find clear information on this:
Do I only prepare the SP once at creation, or each time I change the parameter values?
What about UnPrepare?
Thanks!
In my application, I have stored procedures (TIBCStoredProc) that are created dynamically when certain forms are created. They are only freed when the form is destroyed.
The stored procedures get call multiple times (hundreds, if not thousands).
My question is, when should I call the prepare/unprepare methods? I can't seem to find clear information on this:
Do I only prepare the SP once at creation, or each time I change the parameter values?
What about UnPrepare?
Thanks!