Hitchhiker's Guide to VBSQL -- VBSQL vs ODBC API Data Access (111490)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q111490 SUMMARY
If you want to use ODBC API functions instead of VBSQL data object
variables for data access in Visual Basic, consider the following issues:
- On average, the data access speed of the VBSQL API functions versus ODBC
API functions is about equal. ODBC does some calls slightly faster, and
VBSQL (DBLIB) does some other calls faster.
- The VBSQL API may be slightly easier to use than the ODBC API, but is
not as generic as the ODBC API.
- If portability to C is important to you, the API calls for VBSQL are
identical to the C calls -- except with C you need to bind each variable
with each column, which can be tedious. The error handlers with VBSQL
resemble the C language in that VBSQL implements real call-back
handlers, but this is not an option with the ODBC API.
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | KB111490 |
---|
|