I don't think the suggestions of slurping in the file and then trying to just call do on it will work. I seem to recall that DBI won't handle multiple statements, which most .sql files would be (though I've only used it with MySQL and PostgreSQL, so that may be a limit of the drivers).
My suggestion would be to go line by line and rebuild the statements, looking for ";" characters that aren't in quotes. I'll try to update this and post some code in a moment, as I'm at work and can't come up with a solution off the top of my head. :)
Lobster Aliens Are attacking the world!In reply to Re: DBI execute .sql file
by cfreak
in thread DBI execute .sql file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |