Execute MySQL commands

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Ithilien
Posts: 33
Joined: Tue 27 Feb 2007 21:58

Execute MySQL commands

Post by Ithilien » Sun 12 Aug 2007 10:15

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!

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Mon 13 Aug 2007 07:17

In order to execute SQL commands from file, you can use the ExecuteFile method of the TMyScript component.

Ithilien
Posts: 33
Joined: Tue 27 Feb 2007 21:58

Post by Ithilien » Wed 15 Aug 2007 09:09

Yes Antaeus, i discovered it. Thanks a lot

Post Reply