ICommandText::Notes

Limitations: None

Implementation Notes

  • If SQLNativeSQL is supported in the underlying ODBC driver, the ODBC Provider will initiate a call to this ODBC function when the consumer calls ICommandText::GetCommandText with pguidDialect set to NULL. The string returned from this call is not cached; users must call ICommandText::SetCommandText with the string returned by the ODBC driver to use the native SQL statement.

  • If pguidDialect is set to NULL on input, the ODBC Provider returns the command in ppwszCommand in the dialect used to set the command text. The ODBC Provider also returns S_OK (barring any other errors) rather than DB_S_DIALECTIGNORED.

This topic is a part of: