Table of Contents

Class InformationSchema.Domain

Namespace
LinqToDB.Tools.DataProvider.SqlServer.Schemas
Assembly
linq2db.Tools.dll

DOMAINS (Transact-SQL)

Applies to: √ SQL Server (all supported versions) √ Azure SQL Database

Returns one row for each alias data type that can be accessed by the current user in the current database.
To retrieve information from these views, specify the fully qualified name of INFORMATION_SCHEMA._view_name_.


See INFORMATION_SCHEMA.DOMAINS.

[Table(Schema = "INFORMATION_SCHEMA", Name = "DOMAINS", IsView = true)]
public class InformationSchema.Domain
Inheritance
InformationSchema.Domain
Extension Methods

Properties

CharacterMaximumLength

Maximum length, in characters, for binary data, character data, or text and image data.

-1 for xml and large-value type data. Otherwise, NULL is returned. For more information, see Data Types (Transact-SQL).

[Column("CHARACTER_MAXIMUM_LENGTH")]
[Nullable]
public int? CharacterMaximumLength { get; set; }

Property Value

int?

CharacterOctetLength

Maximum length, in bytes, for binary data, character data, or text and image data.

-1 for xml and large-value type data. Otherwise, NULL is returned.

[Column("CHARACTER_OCTET_LENGTH")]
[Nullable]
public int? CharacterOctetLength { get; set; }

Property Value

int?

CharacterSetCatalog

Returns master. This indicates the database in which the character set is located, if the column is character data or text data type. Otherwise, NULL is returned.

[Column("CHARACTER_SET_CATALOG")]
[Nullable]
public string? CharacterSetCatalog { get; set; }

Property Value

string

CharacterSetName

Returns the unique name for the character set if this column is character data or text data type. Otherwise, NULL is returned.

[Column("CHARACTER_SET_NAME")]
[Nullable]
public string? CharacterSetName { get; set; }

Property Value

string

CharacterSetSchema

Always returns NULL.

[Column("CHARACTER_SET_SCHEMA")]
[Nullable]
public string? CharacterSetSchema { get; set; }

Property Value

string

CollationCatalog

Always returns NULL.

[Column("COLLATION_CATALOG")]
[Nullable]
public string? CollationCatalog { get; set; }

Property Value

string

CollationName

Returns the unique name for the sort order if the column is character data or text data type. Otherwise, NULL is returned.

[Column("COLLATION_NAME")]
[Nullable]
public string? CollationName { get; set; }

Property Value

string

CollationSchema

Always returns NULL.

[Column("COLLATION_SCHEMA")]
[Nullable]
public string? CollationSchema { get; set; }

Property Value

string

DataType

System-supplied data type.

[Column("DATA_TYPE")]
[Nullable]
public string? DataType { get; set; }

Property Value

string

DatetimePrecision

Subtype code for datetime and ISO interval data type. For other data types, this column returns a NULL.

[Column("DATETIME_PRECISION")]
[Nullable]
public short? DatetimePrecision { get; set; }

Property Value

short?

DomainCatalog

Database in which the alias data type exists.

[Column("DOMAIN_CATALOG")]
[Nullable]
public string? DomainCatalog { get; set; }

Property Value

string

DomainDefault

Actual text of the definition Transact-SQL statement.

[Column("DOMAIN_DEFAULT")]
[Nullable]
public string? DomainDefault { get; set; }

Property Value

string

DomainName

Alias data type.

[Column("DOMAIN_NAME")]
[NotNull]
public string DomainName { get; set; }

Property Value

string

DomainSchema

Name of the schema that contains the alias data type.

Important Do not use INFORMATION_SCHEMA views to determine the schema of a data type. The only reliable way to find the schema of a type is to use the TYPEPROPERTY function.

[Column("DOMAIN_SCHEMA")]
[Nullable]
public string? DomainSchema { get; set; }

Property Value

string

NumericPrecision

Precision of approximate numeric data, exact numeric data, integer data, or monetary data. Otherwise, NULL is returned.

[Column("NUMERIC_PRECISION")]
[Nullable]
public byte? NumericPrecision { get; set; }

Property Value

byte?

NumericPrecisionRadix

Precision radix of approximate numeric data, exact numeric data, integer data, or monetary data. Otherwise, NULL is returned.

[Column("NUMERIC_PRECISION_RADIX")]
[Nullable]
public short? NumericPrecisionRadix { get; set; }

Property Value

short?

NumericScale

Scale of approximate numeric data, exact numeric data, integer data, or monetary data. Otherwise, NULL is returned.

[Column("NUMERIC_SCALE")]
[Nullable]
public byte? NumericScale { get; set; }

Property Value

byte?