DeclareVariableElement DeclareVariableElement DeclareVariableElement Class

Definition

Represents a single declaration in the body of DeclareVariableStatement.

public ref class DeclareVariableElement : Microsoft::SqlServer::TransactSql::ScriptDom::TSqlFragment
public class DeclareVariableElement : Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
Public Class DeclareVariableElement
Inherits TSqlFragment
Inheritance
DeclareVariableElementDeclareVariableElementDeclareVariableElement
Derived

Constructors

DeclareVariableElement() DeclareVariableElement() DeclareVariableElement()

Initializes a new instance of the DeclareVariableElement class.

Properties

DataType DataType DataType

Gets or sets the data type of the variable. The TABLE type is invalid.

FirstTokenIndex FirstTokenIndex FirstTokenIndex

Gets or sets the first token index.

(Inherited from TSqlFragment)
FragmentLength FragmentLength FragmentLength

Gets the fragment length.

(Inherited from TSqlFragment)
LastTokenIndex LastTokenIndex LastTokenIndex

Gets or sets the last token index.

(Inherited from TSqlFragment)
Nullable Nullable Nullable

Gets or sets the nullable constraint. Optional can be null.

ScriptTokenStream ScriptTokenStream ScriptTokenStream

Gets or sets a list of token streams.

(Inherited from TSqlFragment)
StartColumn StartColumn StartColumn

Gets the starting column.

(Inherited from TSqlFragment)
StartLine StartLine StartLine

Gets the starting line.

(Inherited from TSqlFragment)
StartOffset StartOffset StartOffset

Gets the fragment start offset value.

(Inherited from TSqlFragment)
Value Value Value

Gets or sets the initial variable value specified in declaration.

VariableName VariableName VariableName

Gets or sets the name of the variable, including the @ at the beginning.

Methods

Accept(TSqlFragmentVisitor) Accept(TSqlFragmentVisitor) Accept(TSqlFragmentVisitor)

Accepts a visit from the specified visitor.

AcceptChildren(TSqlFragmentVisitor) AcceptChildren(TSqlFragmentVisitor) AcceptChildren(TSqlFragmentVisitor)

Accepts a visit for the Children from the specified visitor.

Fields

Uninitialized Uninitialized Uninitialized

Value is -1.

(Inherited from TSqlFragment)

Applies to