The information in this article applies to:
SYMPTOMS
If you enclose a character string in double quotation marks that is over 30
bytes long, the application may receive the error:
CAUSESQL Server version 6.0 does not always flag stored procedure parameters enclosed in double quotation marks if the SET QUOTED_IDENTIFIER ON option has been issued. RESOLUTION
Change the procedure call to enclose the parameter values in single
quotation marks:
ODBC applications can also use bound parameter markers instead of providing the values directly using either proprietary Transact-SQL syntax:
or, the ODBC standard syntax:
MORE INFORMATION
Microsoft SQL Server version 6.0 introduces the concept of quoted
identifiers. As described in the "Transact-SQL Reference," when the
QUOTED_IDENTIFIERS option is set on (SET QUOTED_IDENTIFIERS ON), SQL Server
expects quoted identifiers to be enclosed in double quotation marks (") and
data values to be enclosed in single quotation marks ('). In the case of
character parameters of stored procedures, data values enclosed in double
quotation marks are accepted by SQL Server if the character string is less
than 30 bytes long. They should be considered syntax errors by SQL Server
and generate an error.
Additional query words: sql6 delimiters string constants
Keywords : kbprg SSrvProg SSrvTran_SQL |
Last Reviewed: April 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |