SystemDatatype Object

SQL-DMO

SQL-DMO

SystemDatatype Object

The SystemDatatype object exposes the attributes of a Microsoft® SQL Server™ base data type.

Properties
AllowIdentity Property IsVariableLength Property
AllowLength Property MaximumChar Property
AllowNulls Property MaximumLength Property
IsNumeric Property Name Property
Remarks

SQL Server defines base data types, such as varchar or smallint. The types constrain data in SQL Server columns to certain fundamental properties, such as numeric precision or value representation. SQL Server base data types have an established precedence for mixed-data type arithmetic performed on an instance of SQL Server.

A SystemDatatype object exists for each base data type defined by SQL Server.

The Name property of a SystemDatatype cannot be set by the user.

Note  The SystemDatatype object is compatible with instances of SQL Server 2000 and SQL Server version 7.0. However, the SystemDatatype2 object extends the functionality of the SystemDatatype object for use with features that are new in SQL Server 2000.

See Also

Data Types

SystemDataType2 Object