Adaptive Server Enterprise ODBC Driver now allows you to set the SQL_ATTR_OUTPUT_NTS attribute to SQL_FALSE
so
that the driver does not return string data null-terminated. Set
the attribute before allocating any connection handle:
SQLSetEnvAttr(hEnv, SQL_ATTR_OUTPUT_NTS, (SQLPOINTER)SQL_FALSE, SQL_IS_INTEGER)
By default, the SQL_ATTR_OUTPUT_NTS attribute
to SQL_TRUE
and all
output strings are null-terminated.