From the codes syntax, there is no error. An ODBC 3.0 or 2.x application will always bind to the ANSI data types. For optimum performance, an ODBC 3.5 (or higher) application should bind to the ANSI data C type if the SQL column type is ANSI, and should
bind to the Unicode C data type if the SQL column type is Unicode. Please check the data type of column 12 and ODBC version.