sqlucode.h File Reference

Header for Unicode specific definition in ODBC. More...

#include "sqltypes.h"
Include dependency graph for sqlucode.h:

Macros

#define SQL_WCHAR (-8)
#define SQL_WVARCHAR (-9)
#define SQL_WLONGVARCHAR (-10)
#define SQL_C_WCHARSQL_WCHAR
#define SQL_C_TCHARSQL_C_CHAR
#define SQL_SQLSTATE_SIZEW 10 /* size of SQLSTATE for unicode */

Functions

SQLRETURN SQLColAttributeW (SQLHSTMT hstmt, SQLUSMALLINT iCol, SQLUSMALLINT iField, SQLPOINTER pCharAttr, SQLSMALLINT cbCharAttrMax, SQLSMALLINT *pcbCharAttr, SQLINTEGER *pNumAttr)
Unicode versions of the API. More...
SQLRETURN SQLColumnPrivilegesW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName, SQLWCHAR *szColumnName, SQLSMALLINT cbColumnName)
SQLRETURN SQLColumnsW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName, SQLWCHAR *szColumnName, SQLSMALLINT cbColumnName)
SQLRETURN SQLConnectW (SQLHDBC hdbc, const SQLWCHAR *szDSN, SQLSMALLINT cbDSN, const SQLWCHAR *szUID, SQLSMALLINT cbUID, const SQLWCHAR *szAuthStr, SQLSMALLINT cbAuthStr)
SQLRETURN SQLDescribeColW (SQLHSTMT hstmt, SQLUSMALLINT icol, SQLWCHAR *szColName, SQLSMALLINT cbColNameMax, SQLSMALLINT *pcbColName, SQLSMALLINT *pfSqlType, SQLUINTEGER *pcbColDef, SQLSMALLINT *pibScale, SQLSMALLINT *pfNullable)
SQLRETURN SQLDriverConnectW (SQLHDBC ConnectionHandle, SQLHWND WindowHandle, const SQLWCHAR *InConnectionString, SQLSMALLINT StringLength1, SQLWCHAR *OutConnectionString, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength2Ptr, SQLUSMALLINT DriverCompletion)
SQLRETURN SQLExecDirectW (SQLHSTMT hstmt, const SQLWCHAR *szSqlStr, SQLINTEGER cbSqlStr)
SQLRETURN SQLForeignKeysW (SQLHSTMT hstmt, SQLWCHAR *szPkCatalogName, SQLSMALLINT cbPkCatalogName, SQLWCHAR *szPkSchemaName, SQLSMALLINT cbPkSchemaName, SQLWCHAR *szPkTableName, SQLSMALLINT cbPkTableName, SQLWCHAR *szFkCatalogName, SQLSMALLINT cbFkCatalogName, SQLWCHAR *szFkSchemaName, SQLSMALLINT cbFkSchemaName, SQLWCHAR *szFkTableName, SQLSMALLINT cbFkTableName)
SQLRETURN SQLGetConnectAttrW (SQLHDBC hdbc, SQLINTEGER fAttribute, SQLPOINTER rgbValue, SQLINTEGER cbValueMax, SQLINTEGER *pcbValue)
SQLRETURN SQLGetCursorNameW (SQLHSTMT hstmt, SQLWCHAR *szCursor, SQLSMALLINT cbCursorMax, SQLSMALLINT *pcbCursor)
SQLRETURN SQLGetDescFieldW (SQLHDESC hdesc, SQLSMALLINT iRecord, SQLSMALLINT iField, SQLPOINTER rgbValue, SQLINTEGER cbValueMax, SQLINTEGER *pcbValue)
SQLRETURN SQLGetDescRecW (SQLHDESC hdesc, SQLSMALLINT iRecord, SQLWCHAR *szName, SQLSMALLINT cbNameMax, SQLSMALLINT *pcbName, SQLSMALLINT *pfType, SQLSMALLINT *pfSubType, SQLINTEGER *pLength, SQLSMALLINT *pPrecision, SQLSMALLINT *pScale, SQLSMALLINT *pNullable)
SQLRETURN SQLGetDiagFieldW (SQLSMALLINT fHandleType, SQLHANDLE handle, SQLSMALLINT iRecord, SQLSMALLINT fDiagField, SQLPOINTER rgbDiagInfo, SQLSMALLINT cbDiagInfoMax, SQLSMALLINT *pcbDiagInfo)
SQLRETURN SQLGetDiagRecW (SQLSMALLINT fHandleType, SQLHANDLE handle, SQLSMALLINT iRecord, SQLWCHAR *szSqlState, SQLINTEGER *pfNativeError, SQLWCHAR *szErrorMsg, SQLSMALLINT cbErrorMsgMax, SQLSMALLINT *pcbErrorMsg)
SQLRETURN SQLGetInfoW (SQLHDBC hdbc, SQLUSMALLINT fInfoType, SQLPOINTER rgbInfoValue, SQLSMALLINT cbInfoValueMax, SQLSMALLINT *pcbInfoValue)
SQLRETURN SQLGetStmtAttrW (SQLHSTMT hstmt, SQLINTEGER fAttribute, SQLPOINTER rgbValue, SQLINTEGER cbValueMax, SQLINTEGER *pcbValue)
SQLRETURN SQLGetTypeInfoW (SQLHSTMT hstmt, SQLSMALLINT fDataType)
SQLRETURN SQLNativeSqlW (SQLHDBC hdbc, const SQLWCHAR *szSqlStrIn, SQLINTEGER cbSqlStrIn, SQLWCHAR *szSqlStr, SQLINTEGER cbSqlStrMax, SQLINTEGER *pcbSqlStr)
SQLRETURN SQLPrepareW (SQLHSTMT hstmt, const SQLWCHAR *szSqlStr, SQLINTEGER cbSqlStr)
SQLRETURN SQLPrimaryKeysW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName)
SQLRETURN SQLProcedureColumnsW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szProcName, SQLSMALLINT cbProcName, SQLWCHAR *szColumnName, SQLSMALLINT cbColumnName)
SQLRETURN SQLProceduresW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szProcName, SQLSMALLINT cbProcName)
SQLRETURN SQLSetConnectAttrW (SQLHDBC hdbc, SQLINTEGER fAttribute, SQLPOINTER rgbValue, SQLINTEGER cbValue)
SQLRETURN SQLSetCursorNameW (SQLHSTMT hstmt, const SQLWCHAR *szCursor, SQLSMALLINT cbCursor)
SQLRETURN SQLSetDescFieldW (SQLHDESC hdesc, SQLSMALLINT iRecord, SQLSMALLINT iField, SQLPOINTER rgbValue, SQLINTEGER cbvalueMax)
SQLRETURN SQLSetStmtAttrW (SQLHSTMT hstmt, SQLINTEGER fAttribute, SQLPOINTER rgbValue, SQLINTEGER cbValueMax)
SQLRETURN SQLSpecialColumnsW (SQLHSTMT hstmt, SQLUSMALLINT fColType, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName, SQLUSMALLINT fScope, SQLUSMALLINT fNullable)
SQLRETURN SQLStatisticsW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName, SQLUSMALLINT fUnique, SQLUSMALLINT fAccuracy)
SQLRETURN SQLTablePrivilegesW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName)
SQLRETURN SQLTablesW (SQLHSTMT hstmt, SQLWCHAR *szCatalogName, SQLSMALLINT cbCatalogName, SQLWCHAR *szSchemaName, SQLSMALLINT cbSchemaName, SQLWCHAR *szTableName, SQLSMALLINT cbTableName, SQLWCHAR *szTableType, SQLSMALLINT cbTableType)

Detailed Description

Header for Unicode specific definition in ODBC.

Macro Definition Documentation

SQL_C_TCHAR

#define SQL_C_TCHAR SQL_C_CHAR

SQL_C_WCHAR

#define SQL_C_WCHAR SQL_WCHAR

SQL_SQLSTATE_SIZEW

#define SQL_SQLSTATE_SIZEW 10 /* size of SQLSTATE for unicode */

SQL_WCHAR

#define SQL_WCHAR (-8)

SQL_WLONGVARCHAR

#define SQL_WLONGVARCHAR (-10)

SQL_WVARCHAR

#define SQL_WVARCHAR (-9)

Function Documentation

SQLColAttributeW()

SQLRETURN SQLColAttributeW ( SQLHSTMT hstmt,
SQLUSMALLINT iCol,
SQLUSMALLINT iField,
SQLPOINTER pCharAttr,
SQLSMALLINT cbCharAttrMax,
SQLSMALLINT * pcbCharAttr,
SQLINTEGER * pNumAttr
)

Unicode versions of the API.

SQLColumnPrivilegesW()

SQLRETURN SQLColumnPrivilegesW ( SQLHSTMT hstmt,
SQLWCHAR * szCatalogName,
SQLSMALLINT cbCatalogName,
SQLWCHAR * szSchemaName,
SQLSMALLINT cbSchemaName,
SQLWCHAR * szTableName,
SQLSMALLINT cbTableName,
SQLWCHAR * szColumnName,
SQLSMALLINT cbColumnName
)

SQLColumnsW()

SQLRETURN SQLColumnsW ( SQLHSTMT hstmt,
SQLWCHAR * szCatalogName,
SQLSMALLINT cbCatalogName,
SQLWCHAR * szSchemaName,
SQLSMALLINT cbSchemaName,
SQLWCHAR * szTableName,
SQLSMALLINT cbTableName,
SQLWCHAR * szColumnName,
SQLSMALLINT cbColumnName
)

SQLConnectW()

SQLRETURN SQLConnectW ( SQLHDBC hdbc,
const SQLWCHAR * szDSN,
SQLSMALLINT cbDSN,
const SQLWCHAR * szUID,
SQLSMALLINT cbUID,
const SQLWCHAR * szAuthStr,
SQLSMALLINT cbAuthStr
)

SQLDescribeColW()

SQLRETURN SQLDescribeColW ( SQLHSTMT hstmt,
SQLUSMALLINT icol,
SQLWCHAR * szColName,
SQLSMALLINT cbColNameMax,
SQLSMALLINT * pcbColName,
SQLSMALLINT * pfSqlType,
SQLUINTEGER * pcbColDef,
SQLSMALLINT * pibScale,
SQLSMALLINT * pfNullable
)

SQLDriverConnectW()

SQLRETURN SQLDriverConnectW ( SQLHDBC ConnectionHandle,
SQLHWND WindowHandle,
const SQLWCHAR * InConnectionString,
SQLSMALLINT StringLength1,
SQLWCHAR * OutConnectionString,
SQLSMALLINT BufferLength,
SQLSMALLINT * StringLength2Ptr,
SQLUSMALLINT DriverCompletion
)

SQLExecDirectW()

SQLRETURN SQLExecDirectW ( SQLHSTMT hstmt,
const SQLWCHAR * szSqlStr,
SQLINTEGER cbSqlStr
)

SQLForeignKeysW()

SQLRETURN SQLForeignKeysW ( SQLHSTMT hstmt,
SQLWCHAR * szPkCatalogName,
SQLSMALLINT cbPkCatalogName,
SQLWCHAR * szPkSchemaName,
SQLSMALLINT cbPkSchemaName,
SQLWCHAR * szPkTableName,
SQLSMALLINT cbPkTableName,
SQLWCHAR * szFkCatalogName,
SQLSMALLINT cbFkCatalogName,
SQLWCHAR * szFkSchemaName,
SQLSMALLINT cbFkSchemaName,
SQLWCHAR * szFkTableName,
SQLSMALLINT cbFkTableName
)

SQLGetConnectAttrW()

SQLRETURN SQLGetConnectAttrW ( SQLHDBC hdbc,
SQLINTEGER fAttribute,
SQLPOINTER rgbValue,
SQLINTEGER cbValueMax,
SQLINTEGER * pcbValue
)

SQLGetCursorNameW()

SQLRETURN SQLGetCursorNameW ( SQLHSTMT hstmt,
SQLWCHAR * szCursor,
SQLSMALLINT cbCursorMax,
SQLSMALLINT * pcbCursor
)

SQLGetDescFieldW()

SQLRETURN SQLGetDescFieldW ( SQLHDESC hdesc,
SQLSMALLINT iRecord,
SQLSMALLINT iField,
SQLPOINTER rgbValue,
SQLINTEGER cbValueMax,
SQLINTEGER * pcbValue
)

SQLGetDescRecW()

SQLRETURN SQLGetDescRecW ( SQLHDESC hdesc,
SQLSMALLINT iRecord,
SQLWCHAR * szName,
SQLSMALLINT cbNameMax,
SQLSMALLINT * pcbName,
SQLSMALLINT * pfType,
SQLSMALLINT * pfSubType,
SQLINTEGER * pLength,
SQLSMALLINT * pPrecision,
SQLSMALLINT * pScale,
SQLSMALLINT * pNullable
)

SQLGetDiagFieldW()

SQLRETURN SQLGetDiagFieldW ( SQLSMALLINT fHandleType,
SQLHANDLE handle,
SQLSMALLINT iRecord,
SQLSMALLINT fDiagField,
SQLPOINTER rgbDiagInfo,
SQLSMALLINT cbDiagInfoMax,
SQLSMALLINT * pcbDiagInfo
)

SQLGetDiagRecW()

SQLRETURN SQLGetDiagRecW ( SQLSMALLINT fHandleType,
SQLHANDLE handle,
SQLSMALLINT iRecord,
SQLWCHAR * szSqlState,
SQLINTEGER * pfNativeError,
SQLWCHAR * szErrorMsg,
SQLSMALLINT cbErrorMsgMax,
SQLSMALLINT * pcbErrorMsg
)

SQLGetInfoW()

SQLRETURN SQLGetInfoW ( SQLHDBC hdbc,
SQLUSMALLINT fInfoType,
SQLPOINTER rgbInfoValue,
SQLSMALLINT cbInfoValueMax,
SQLSMALLINT * pcbInfoValue
)

SQLGetStmtAttrW()

SQLRETURN SQLGetStmtAttrW ( SQLHSTMT hstmt,
SQLINTEGER fAttribute,
SQLPOINTER rgbValue,
SQLINTEGER cbValueMax,
SQLINTEGER * pcbValue
)

SQLGetTypeInfoW()

SQLRETURN SQLGetTypeInfoW ( SQLHSTMT hstmt,
SQLSMALLINT fDataType
)

SQLNativeSqlW()

SQLRETURN SQLNativeSqlW ( SQLHDBC hdbc,
const SQLWCHAR * szSqlStrIn,
SQLINTEGER cbSqlStrIn,
SQLWCHAR * szSqlStr,
SQLINTEGER cbSqlStrMax,
SQLINTEGER * pcbSqlStr
)

SQLPrepareW()

SQLRETURN SQLPrepareW ( SQLHSTMT hstmt,
const SQLWCHAR * szSqlStr,
SQLINTEGER cbSqlStr
)

SQLPrimaryKeysW()

SQLRETURN SQLPrimaryKeysW ( SQLHSTMT hstmt,
SQLWCHAR * szCatalogName,
SQLSMALLINT cbCatalogName,
SQLWCHAR * szSchemaName,
SQLSMALLINT cbSchemaName,
SQLWCHAR * szTableName,
SQLSMALLINT cbTableName
)

SQLProcedureColumnsW()

SQLRETURN SQLProcedureColumnsW ( SQLHSTMT hstmt,
SQLWCHAR * szCatalogName,
SQLSMALLINT cbCatalogName,
SQLWCHAR * szSchemaName,
SQLSMALLINT cbSchemaName,
SQLWCHAR * szProcName,
SQLSMALLINT cbProcName,
SQLWCHAR * szColumnName,
SQLSMALLINT cbColumnName
)

SQLProceduresW()

SQLRETURN SQLProceduresW ( SQLHSTMT hstmt,
SQLWCHAR * szCatalogName,
SQLSMALLINT cbCatalogName,
SQLWCHAR * szSchemaName,
SQLSMALLINT cbSchemaName,
SQLWCHAR * szProcName,
SQLSMALLINT cbProcName
)

SQLSetConnectAttrW()

SQLRETURN SQLSetConnectAttrW ( SQLHDBC hdbc,
SQLINTEGER fAttribute,
SQLPOINTER rgbValue,
SQLINTEGER cbValue
)

SQLSetCursorNameW()

SQLRETURN SQLSetCursorNameW ( SQLHSTMT hstmt,
const SQLWCHAR * szCursor,
SQLSMALLINT cbCursor
)

SQLSetDescFieldW()

SQLRETURN SQLSetDescFieldW ( SQLHDESC hdesc,
SQLSMALLINT iRecord,
SQLSMALLINT iField,
SQLPOINTER rgbValue,
SQLINTEGER cbvalueMax
)

SQLSetStmtAttrW()

SQLRETURN SQLSetStmtAttrW ( SQLHSTMT hstmt,
SQLINTEGER fAttribute,
SQLPOINTER rgbValue,
SQLINTEGER cbValueMax
)

SQLSpecialColumnsW()

SQLRETURN SQLSpecialColumnsW ( SQLHSTMT hstmt,
SQLUSMALLINT fColType,
SQLWCHAR * szCatalogName,
SQLSMALLINT cbCatalogName,
SQLWCHAR * szSchemaName,
SQLSMALLINT cbSchemaName,
SQLWCHAR * szTableName,
SQLSMALLINT cbTableName,
SQLUSMALLINT fScope,
SQLUSMALLINT fNullable
)

SQLStatisticsW()

SQLRETURN SQLStatisticsW ( SQLHSTMT hstmt,
SQLWCHAR * szCatalogName,
SQLSMALLINT cbCatalogName,
SQLWCHAR * szSchemaName,
SQLSMALLINT cbSchemaName,
SQLWCHAR * szTableName,
SQLSMALLINT cbTableName,
SQLUSMALLINT fUnique,
SQLUSMALLINT fAccuracy
)

SQLTablePrivilegesW()

SQLRETURN SQLTablePrivilegesW ( SQLHSTMT hstmt,
SQLWCHAR * szCatalogName,
SQLSMALLINT cbCatalogName,
SQLWCHAR * szSchemaName,
SQLSMALLINT cbSchemaName,
SQLWCHAR * szTableName,
SQLSMALLINT cbTableName
)

SQLTablesW()

SQLRETURN SQLTablesW ( SQLHSTMT hstmt,
SQLWCHAR * szCatalogName,
SQLSMALLINT cbCatalogName,
SQLWCHAR * szSchemaName,
SQLSMALLINT cbSchemaName,
SQLWCHAR * szTableName,
SQLSMALLINT cbTableName,
SQLWCHAR * szTableType,
SQLSMALLINT cbTableType
)