How To Use SQLBindParameter with 32-bit Visual Basic (150786)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 4.0
- Microsoft Visual Basic Professional Edition for Windows 4.0
- Microsoft Visual Basic Enterprise Edition for Windows 4.0
This article was previously published under Q150786 SUMMARY
This article demonstrates how to use the ODBC API SQLBindParameter function
with the 32-bit edition of Visual Basic 4.0 and higher. It includes the use
of a Visual Basic byte array, required with the UNICODE to ANSI string
conversion implemented in Visual Basic, to pass string data back and forth.
Programming directly to the ODBC API is an alternative to using RDO and DAO
code to access the ODBC database, both of which depend on an OLE interface
and the associated overhead. This direct method allows the programmer to
have low-level control over the ODBC datasource. This article also
introduces the Visual Basic programmer to a complex programming model
that requires in-depth knowledge of the ODBC 2.0 specification.
If you feel you can benefit from this direct approach, obtain a copy of the
"ODBC 2.0 Programmer's Reference and SDK Guide" that fully documents the
ODBC API before you proceed.
REFERENCES
For more information, please see: "ODBC 2.0 Programmer's Reference and SDK
Guide," published by Microsoft Press.
(Hitchhiker's Guide to Visual Basic and SQL Server, Microsoft Press.
ISBN: 1-55615-906-4.).
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto KB150786 |
---|
|