Export (0) Print
Expand All

OleDbLiteral Enumeration

Returns information about literals used in text commands, data values, and database objects.

Namespace:  System.Data.OleDb
Assembly:  System.Data (in System.Data.dll)

public enum OleDbLiteral

Member nameDescription
Binary_LiteralA binary literal in a text command. Maps to DBLITERAL_BINARY_LITERAL.
Catalog_NameA catalog name in a text command. Maps to DBLITERAL_CATALOG_NAME.
Catalog_SeparatorThe character that separates the catalog name from the rest of the identifier in a text command. Maps to DBLITERAL_CATALOG_SEPARATOR.
Char_LiteralA character literal in a text command. Maps to DBLITERAL_CHAR_LITERAL.
Column_AliasA column alias in a text command. Maps to DBLITERAL_COLUMN_ALIAS.
Column_NameA column name used in a text command or in a data-definition interface. Maps to DBLITERAL_COLUMN_NAME.
Correlation_NameA correlation name (table alias) in a text command. Maps to DBLITERAL_CORRELATION_NAME.
Cube_NameThe name of a cube in a schema (or the catalog if the provider does not support schemas).
Cursor_NameA cursor name in a text command. Maps to DBLITERAL_CURSOR_NAME.
Dimension_NameThe name of the dimension. If a dimension is part of more than one cube, there is one row for each cube/dimension combination.
Escape_Percent_PrefixThe character used in a LIKE clause to escape the character returned for the DBLITERAL_LIKE_PERCENT literal. For example, if a percent sign (%) is used to match zero or more characters and this is a backslash (\), the characters "abc\%%" match all character values that start with "abc%". Some SQL dialects support a clause (the ESCAPE clause) that can be used to override this value. Maps to DBLITERAL_ESCAPE_PERCENT_PREFIX.
Escape_Percent_SuffixThe escape character, if any, used to suffix the character returned for the DBLITERAL_LIKE_PERCENT literal. For example, if a percent sign (%) is used to match zero or more characters and percent signs are escaped by enclosing in open and close square brackets, DBLITERAL_ESCAPE_PERCENT_PREFIX is "[", DBLITERAL_ESCAPE_PERCENT_SUFFIX is "]", and the characters "abc[%]%" match all character values that start with "abc%". Providers that do not use a suffix character to escape the DBLITERAL_ESCAPE_PERCENT character do not return this literal value and can set the lt member of the DBLITERAL structure to DBLITERAL_INVALID if requested. Maps to DBLITERAL_ESCAPE_PERCENT_SUFFIX.
Escape_Underscore_PrefixThe character used in a LIKE clause to escape the character returned for the DBLITERAL_LIKE_UNDERSCORE literal. For example, if an underscore (_) is used to match exactly one character and this is a backslash (\), the characters "abc\_ _" match all character values that are five characters long and start with "abc_". Some SQL dialects support a clause (the ESCAPE clause) that can be used to override this value. Maps to DBLITERAL_ESCAPE_UNDERSCORE_PREFIX.
Escape_Underscore_SuffixThe character used in a LIKE clause to escape the character returned for the DBLITERAL_LIKE_UNDERSCORE literal. For example, if an underscore (_) is used to match exactly one character and this is a backslash (\), the characters "abc\_ _" match all character values that are five characters long and start with "abc_". Some SQL dialects support a clause (the ESCAPE clause) that can be used to override this value. Maps to DBLITERAL_ESCAPE_UNDERSCORE_SUFFIX.
Hierarchy_NameThe name of the hierarchy. If the dimension does not contain a hierarchy or has only one hierarchy, the current column contains a null value.
Index_NameAn index name used in a text command or in a data-definition interface. Maps to DBLITERAL_INDEX_NAME.
InvalidAn invalid value. Maps to DBLITERAL_INVALID.
Level_NameName of the cube to which the current level belongs.
Like_PercentThe character used in a LIKE clause to match zero or more characters. For example, if this is a percent sign (%), the characters "abc%" match all character values that start with "abc". Maps to DBLITERAL_LIKE_PERCENT.
Like_UnderscoreThe character used in a LIKE clause to match exactly one character. For example, if this is an underscore (_), the characters "abc_" match all character values that are four characters long and start with "abc". Maps to DBLITERAL_LIKE_UNDERSCORE.
Member_NameThe name of the member.
Procedure_NameA procedure name in a text command. Maps to DBLITERAL_PROCEDURE_NAME.
Property_NameThe name of the property.
Quote_PrefixThe character used in a text command as the opening quote for quoting identifiers that contain special characters. Maps to DBLITERAL_QUOTE_PREFIX.
Quote_SuffixThe character used in a text command as the closing quote for quoting identifiers that contain special characters. 1.x providers that use the same character as the prefix and suffix may not return this literal value and can set the member of the DBLITERAL structure to DBLITERAL_INVALID if requested. Maps to DBLITERAL_QUOTE_SUFFIX.
Schema_NameA schema name in a text command. Maps to DBLITERAL_SCHEMA_NAME.
Schema_SeparatorThe character that separates the schema name from the rest of the identifier in a text command. Maps to DBLITERAL_SCHEMA_SEPARATOR.
Table_NameA table name used in a text command or in a data-definition interface. Maps to DBLITERAL_TABLE_NAME.
Text_CommandA text command, such as an SQL statement. Maps to DBLITERAL_TEXT_COMMAND.
User_NameA user name in a text command. Maps to DBLITERAL_USER_NAME.
View_NameA view name in a text command. Maps to DBLITERAL_VIEW_NAME.

The OleDbLiteral enumeration returns the following categories of literal information.

Category

Returns

A special character or characters used by text commands, such as the character used to quote identifiers.

The character or characters.

A literal data value, such as a character literal in an SQL statement.

The maximum length of the literal in characters, a list of the characters that cannot be used in the literal, and a list of the characters that cannot be used as the first character of the literal.

The name of a database object such as a column or table.

The maximum length of the name in characters, a list of the characters that cannot be used in the name, and a list of the characters that cannot be used as the first character of the name.

Multidimensional restriction columns.

Restriction values that return information about cubes, dimensions, hierarchies, levels, and members available from a data source; and are treated as literals instead of as search patterns.

Most members of the OleDbLiteral enumeration maps to one of the OLE DB DBLITERAL values that are returned in the DBLITERALINFO structure.

Multidimensional restriction columns are members of schema objects and map to OLE DB for OLAP used by the IDBSchemaRowset interface.

A NotSupportedException is generated if the specified literal information is not supported and cannot be returned.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft