Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running scripts through delphi

Status
Not open for further replies.

cyberant

Programmer
Sep 21, 2003
44
ZA
Hi All!

I've written a database application that requires me to alter procedures and tables within the *.GDB file upon each application upgrade to my clients. I've tried using IBconsole and Interactive sql but I'm looking for a more automatic procedure. Is there perhaps a component that allows me to execute scripts from within delphi? This would allow me to write a simple program to update the database. The delphi query component allows me to do simple select, input and drop commands but as soon as I do something a little more complex such as altering a procedure, it says that it can't recognize the "set term" command as its only part of the isql language.

Sorry for the long winded explanation.


 
You can use TIBSql or TIBQuery but you do not need to use 'set term'; simply enter the command and do not forget to set the ParamCheck property to False.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top