Microsoft.SqlServer.TransactSql.ScriptDom by Microsoft

<PackageReference Include="Microsoft.SqlServer.TransactSql.ScriptDom" Version="161.9109.0" />

.NET API 5,160,368 bytes

 SetVariableStatement

Represents the set @local_variable statement
public AssignmentKind AssignmentKind { get; set; }

Assignment operator used.

public CursorDefinition CursorDefinition { get; set; }

Cursor - if not null, then Expression has to be null

public ScalarExpression Expression { get; set; }

The expression that the variable is goint to be set. Can be null in case of cursor

public bool FunctionCallExists { get; set; }

True if the column identifiers end with a function call.

public Identifier Identifier { get; set; }

The identifier that can represent the property, field or method. Optional, may be null.

The parameters to the function.

public SeparatorType SeparatorType { get; set; }

Shows the separator.

public VariableReference Variable { get; set; }

The variable that is going to be set.