Page 1 of 1

Execute MySQL commands

Posted: Sun 12 Aug 2007 10:15
by Ithilien
Hi,

is it possible to execute an statement like

Code: Select all

source filename.sql
Using TMyCommand or TMyQuery object? I'm trying but unsuccessfully.

Thanks!

Posted: Mon 13 Aug 2007 07:17
by Antaeus
In order to execute SQL commands from file, you can use the ExecuteFile method of the TMyScript component.

Posted: Wed 15 Aug 2007 09:09
by Ithilien
Yes Antaeus, i discovered it. Thanks a lot