CreateStatisticsStatement CreateStatisticsStatement CreateStatisticsStatement Class

Definition

Represents the create statistics statement.

public ref class CreateStatisticsStatement : Microsoft::SqlServer::TransactSql::ScriptDom::TSqlStatement
public class CreateStatisticsStatement : Microsoft.SqlServer.TransactSql.ScriptDom.TSqlStatement
Public Class CreateStatisticsStatement
Inherits TSqlStatement
Inheritance
CreateStatisticsStatementCreateStatisticsStatementCreateStatisticsStatement

Constructors

CreateStatisticsStatement() CreateStatisticsStatement() CreateStatisticsStatement()

Initializes a new instance of the CreateStatisticsStatement class.

Properties

Columns Columns Columns

Gets a list of the columns of the table or view that is relevant to the statistic.

FilterPredicate FilterPredicate FilterPredicate

Gets or sets the optional filter predicate for the CREATE STATISTICS statement.

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)
Name Name Name

Gets or sets the name of the statistic.

OnName OnName OnName

Gets or sets the table or view this statistic is on.

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)
StatisticsOptions StatisticsOptions StatisticsOptions

Gets a list of the statistics options.

Methods

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

Indicates the entry point for a given visitor.

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

Calls Accept on the children with the given visitor.

Fields

Uninitialized Uninitialized Uninitialized

Value is -1.

(Inherited from TSqlFragment)

Applies to