Column.DataType Property


Gets or sets the data type that is assigned to the column.

This API is not CLS-compliant.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.SqlAzureDatabase | SfcPropertyFlags.Design)]
[SfcReferenceAttribute(typeof(UserDefinedType), typeof(UserDefinedTypeResolver), 
	"Resolve", new string[] { ... })]
[SfcReferenceAttribute(typeof(UserDefinedDataType), typeof(UserDefinedDataTypeResolver), 
	"Resolve", new string[] { ... })]
public DataType DataType { get; set; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.DataType

A DataType object value that specifies the data type assigned to the column.

Return to top