Export (0) Print
Expand All

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)

[SfcReferenceAttribute(typeof(UserDefinedType), typeof(UserDefinedTypeResolver), 
	"Resolve", )]
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(UserDefinedDataType), typeof(UserDefinedDataTypeResolver), 
	"Resolve", )]
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design|SfcPropertyFlags.Matrix)]
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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft