Identifier Arguments
These arguments are treated as identifier arguments if the
SQL_ATTR_METADATA_ID statement attribute is set to SQL_TRUE. In this case, the underscore (_) and
the percent sign (%) will be treated as the actual character, not as a search
pattern character. These arguments are treated as either an ordinary argument or
a pattern argument, depending on the argument, if this attribute is set to
SQL_FALSE.
Although identifiers containing special characters must be quoted in SQL
statements, they must not be quoted when passed as catalog function arguments,
because quote characters passed to catalog functions are interpreted literally. For
example, suppose the identifier quote character (which is driver-specific and
returned through SQLGetInfo) is a double quotation mark ("). The first call to SQLTables returns a result set containing information about the Accounts Payable table,
while the second call returns information about the
SQLTables(hstmt2, NULL, 0, NULL, 0, "\"Accounts Payable\"", SQL_NTS, NULL, 0);
For more information about quoted identifiers, see