The quoted identifier enhancement configuration parameter allows the SAP ASE server to use quoted identifiers for:
Tables
Views
Column names
Index names (SAP ASE version 15.7 and later)
System procedure parameters (SAP ASE version 15.7 and later)
quoted identifier enhancement is part of the enable functionality group, and its default settings depends on the settings for enable functionality group configuration parameter. See the System Administration Guide, Volume 1.
sp_configure "enable functionality group", 1
Restart the SAP ASE server so the change takes effect.
set quoted_identifier on
Once you enable quoted identifier enhancement, the query processor removes delimiters and trailing spaces from object definitions when you include quoted identifiers. For example, the SAP ASE server considers "ident", [ident], and ident to be identical. If quoted identifier enhancement is not enabled, "ident" is considered distinct from the other two.
Objects you create with quoted identifiers before restarting the SAP ASE server with the enable functionality group configuration parameter enabled are not automatically accessible when you use quoted identifiers after starting the server with this parameter enabled, and vice versa. That is, the SAP ASE server does not automatically rename all database objects.
sp_rename '"ident"', 'ident'
The SAP ASE server treats [tab.dba.ident] and "tab.dba.ident" as fully qualified names.
Any Transact-SQL statements, functions, and system or stored procedures that accept identifiers for objects also work with delimited identifiers.
The valid_name function distinguishes strings that are valid for identifiers under regular rules from those that are valid under the rules for delimited identifiers, with a nonzero return indicating a valid name.
For example, valid_name('ident/v1') returns true (zero) since 'ident/v1' is valid only as a delimited identifier. However, valid_name('ident') returns a nonzero value because 'ident' is valid as a delimited identifier or as a normal identifier.
Identifiers are limited to 253 characters (28 bytes) (without quoted identifier enhancement enabled these are 255 characters (30 bytes) long). Valid lengths for delimited identifiers include the delimiters and any embedded or trailing spaces.
Do not use dots and delimiters as part of identifiers because of how the SAP ASE server interprets double quotes in varchar strings referring to identifiers.
Identifiers have these additional constraints if they relate to items outside the SAP ASE server:
SQL variables can include @ as the first character.
Temporary objects (objects in tempdb) can include # as the first character.
You cannot use reserved words as identifiers.
Delimited identifiers need not conform to the rules for conventional identifiers, but must be delimited with matching square brackets or with double quotes.
You cannot use delimited identifiers for variables or labels.
You must enable set quoted_identifier to use quoted identifiers. Once you enable set quoted_identifier, you must enclose varchar string literals in single, not double, quotes.
varchar string literals that contain identifiers cannot include delimiter characters.
Begin with (@)
Include spaces
Contain the dot character (.), or the delimiter characters: “, [, or ]
Trailing spaces are stripped from delimited identifiers, and zero-length identifiers are not allowed.