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)
Syntax
'Deklaracja
Public Sub New ( _
parent As SqlSmoObject, _
name As String, _
dataType As DataType, _
isFileStream As Boolean _
)
public Column (
SqlSmoObject parent,
string name,
DataType dataType,
bool isFileStream
)
public:
Column (
SqlSmoObject^ parent,
String^ name,
DataType^ dataType,
bool isFileStream
)
public Column (
SqlSmoObject parent,
String name,
DataType dataType,
boolean isFileStream
)
public function Column (
parent : SqlSmoObject,
name : String,
dataType : DataType,
isFileStream : boolean
)
Parameters
- parent
A SqlSmoObject object that specifies the parent that owns the Column object.
- name
A String value that specifies the name of the column.
- dataType
A DataType object value that specifies the data type assigned to the column.
- isFileStream
A Boolean value that specifies if the FILESTREAM attribute will be attached to the column.
Remarks
If isFileStream is true and dataType is any value except VarBinaryMax, an error is generated.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.