Not 100% sure what you mean by execute do you want the results like you would a find or just run the sql on your database?
The prior I'd go with fain182's suggestion, the latter you can run a sql file via the php exec function (if you're allowed access). http://us.php.net/manual/en/function.exec.php something like: <?php exec('mysql -p -h DBSERVER dbname < sqlfile.sql'); ?> Nick On May 8, 6:48 am, fain182 <fain...@gmail.com> wrote: > > Is there any way to execute an SQL file that you've saved to App/ > > config/sql? > > playing with file() and query (http://book.cakephp.org/view/456/query) ? > > -- > pietro --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---