IVariableFactory.CreateTableVariable Method
Creates an ITableVariable object that has the specified name and data type.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Function CreateTableVariable ( _
name As String, _
dataType As ITableDataType _
) As ITableVariable
'Usage
Dim instance As IVariableFactory
Dim name As String
Dim dataType As ITableDataType
Dim returnValue As ITableVariable
returnValue = instance.CreateTableVariable(name, _
dataType)
ITableVariable CreateTableVariable(
string name,
ITableDataType dataType
)
ITableVariable^ CreateTableVariable(
String^ name,
ITableDataType^ dataType
)
abstract CreateTableVariable :
name:string *
dataType:ITableDataType -> ITableVariable
function CreateTableVariable(
name : String,
dataType : ITableDataType
) : ITableVariable
Parameters
- name
Type: System.String
The name of the variable to create.
- dataType
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.ITableDataType
The data type of the variable to create.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.ITableVariable
An ITableVariable object.
See Also
Reference
Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace