Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Column Constructor (SqlSmoObject, String, DataType, Boolean)

Initializes a new instance of the Column class that uses the specified parent, datayype, and optionally adding the FILESTREAM attribute.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
public Column(
	SqlSmoObject parent,
	string name,
	DataType dataType,
	bool isFileStream
)

Parameters

parent
Type: Microsoft.SqlServer.Management.Smo.SqlSmoObject
A SqlSmoObject object that specifies the parent that owns the Column object.
name
Type: System.String
A String value that specifies the name of the column.
dataType
Type: Microsoft.SqlServer.Management.Smo.DataType
A DataType object value that specifies the data type assigned to the column.
isFileStream
Type: System.Boolean
A Boolean value that specifies if the FILESTREAM attribute will be attached to the column.

If isFileStream is true and dataType is any value except [T:Microsoft.SqlServer.Management.Smo.DataType.VarBinaryMax,] an error is generated.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.