Questions and Choices

Hopefully by now we’ve answered all your questions about using ODBC from Perl, except one. If you need to choose between Win32::ODBC and DBD::ODBC, which do you choose?

It’s actually a reasonably straightforward choice. If you need to use more of the ODBC API than is available through DBD::ODBC, then use Win32::ODBC. Otherwise the DBI plus DBD::ODBC combination is probably your best bet.

Get Programming the Perl DBI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.