Hi, ALL,
I have a problem.
I'm trying to connect to MS SQL Server and perform a query. The table I am trying to access has a "char(1)" column.
This is the code I'm using:
Code:
SQLWCHAR dataFontItalic[2];
SQLLEN cbDataFontItalic = SQL_NTS;
ret = SQLBindCol( stmt_tableProp, 6, SQL_C_BIT, &dataFontItalic, 2, &cbDataFontItalic );
When I call SQLFetch() it produces a following error from SQLGetDiagRec():
Invalid character value for cast specification.
Changing the type of dataFontItalic to SQLCHAR does not help. Passing '1' to SQLBindCol() also does not help.
Could someone please help?
Thank you.