in reply to DBI SQL error messages

The error message is what is created by the driver, that is, the Access client libraries - there isn't much that Perl can do.

Most likely it will help you to either increase the tracing level of DBI via

DBI->trace(99);

Often it also helps to simply print out the SQL before executing it. The SQL in question is in line 1 of some file you didn't who. 1 seems a weird line number, but that's what you tell us.

You are not interpolating variables into your SQL, are you? You should read up on placeholders and use those. That eliminates most types of syntax errors with your SQL.

Replies are listed 'Best First'.
Re^2: DBI SQL error messages
by rjberry (Novice) on Oct 06, 2008 at 09:15 UTC

    I was using placeholders, ta. I tried the trace thing and got a lot more info but none of it useful. Having now gone into Access I've seen that's all it gives for error messages anyway! Thanks for the suggestion though. :-)