
ODBC API Declarations/Help needed in getting SQLExecDirect results
Quote:
>Hi
>Can anybody provide the 16 bit ODBC declarations for the following
>functions for VB 4:
>SQLDescribeCol
>SQLColumnAttributes
>SQLBindCol
>SQLGetInfo
Declare Function SQLDescribeCol Lib "odbc.dll" (ByVal hstmt&, ByVal
icol%, ByVal SzColName$, ByVal cbColNameMax%, pcbColName%, pfSqlType%,
pcbColDef&, pibScale%, pfNullable%) As Integer
Declare Function SQLColAttributes Lib "odbc.dll" (ByVal hstmt&, ByVal
icol%, ByVal fDescType%, rgbDesc As Any, ByVal cbDescMax%, pcbDesc%,
pfDesc&) As Integer
Declare Function SQLBindCol Lib "odbc.dll" (ByVal hstmt&, ByVal icol%,
ByVal fCType%, rgbValue As Any, ByVal cbValueMax&, pcbValue&) As
Integer
Declare Function SQLGetInfo Lib "odbc.dll" (ByVal hdbc&, ByVal
fInfoType%, rgbInfoValue As Any, ByVal cbInfoMax%, cbInfoOut%) As
Integer
If you still can not retrieve data from your SQL query, let me know
and I'll send some samples on how!
Tom Nguyen