AdoDataConnectionEscapeIdentifier Method

Escapes an identifier, e.g., a table or field name, using the common delimiter for the connected AdoDataConnection database type or the standard ANSI escaping delimiter, i.e., double-quotes, based on the useAnsiQuotes flag.

Definition

Namespace: Gemstone.Data
Assembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.110 -- Release Build+b4bcf74734aa051a9b802d8f3f6ec05bd02af749
public string EscapeIdentifier(
	string identifier,
	bool useAnsiQuotes = false
)

Parameters

identifier  String
Field name to escape.
useAnsiQuotes  Boolean  (Optional)
Force use of double-quote for identifier delimiter, per SQL-99 standard, regardless of database type.

Return Value

String
Escaped identifier name.

Exceptions

ArgumentExceptionidentifier value cannot be null, empty or whitespace.

See Also