Identifiers

Function

Identifiers are names of objects in the database, such as user IDs, tables, and columns.

Description

Identifiers have a maximum length of 128 bytes. They must be enclosed in double quotes or square brackets if any of the following conditions are true:

You can represent an apostrophe (single quote) inside an identifier by following it with another apostrophe.

Identifiers have the following limitations:

If the QUOTED_IDENTIFIER database option is set to OFF, double quotes are used to delimit SQL strings and cannot be used for identifiers. However, you can always use square brackets to delimit identifiers, regardless of the setting of QUOTED_IDENTIFIER.

The default setting for the QUOTED_IDENTIFIER option is OFF for Open Client and jConnect connections; otherwise the default is ON.

Examples

The following are all valid identifiers.

Surname 
"Surname" 
[Surname] 
SomeBigName 
"Client Number"

See also

For a complete list of reserved words, see “Reserved words”.

For information on the QUOTED_IDENTIFIER option, see “The quoted_identifier option”.

For additional restrictions on server and database names, see “Server command-line switches” on page 7 in Chapter 1, “Running the Database Server” of the Utility Guide.