in reply to DBD::ODBC insert first line, but not line 2

The data type for at least one field is too small for the data you're trying to import. In your code, verify the data type (and length) with the data you're trying to import before you attempt to insert it.

On a side note, why aren't you just using bcp to import your csv file? Insert statements are far slower than bcp.

Jason L. Froebe

Tech Blog