Udostępnij za pośrednictwem


Statistic Class

The Statistic class represents a SQL Server statistic counter.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Deklaracja
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute> _
Public NotInheritable Class Statistic
    Inherits ScriptNameObjectBase
    Implements ICreatable, IDroppable, IMarkForDrop, IScriptable
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)] 
[PhysicalFacetAttribute] 
public sealed class Statistic : ScriptNameObjectBase, ICreatable, IDroppable, IMarkForDrop, 
    IScriptable
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)] 
[PhysicalFacetAttribute] 
public ref class Statistic sealed : public ScriptNameObjectBase, ICreatable, IDroppable, IMarkForDrop, 
    IScriptable
/** @attribute EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule) */ 
/** @attribute PhysicalFacetAttribute() */ 
public final class Statistic extends ScriptNameObjectBase implements ICreatable, IDroppable, 
    IMarkForDrop, IScriptable
EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule) 
PhysicalFacetAttribute 
public final class Statistic extends ScriptNameObjectBase implements ICreatable, IDroppable, 
    IMarkForDrop, IScriptable

Remarks

To get Statistic object properties, users can be a member of the public fixed server role.

To set Statistic object properties, users must have ALTER permission on the parent table or view or be a member of the db_owner fixed database role.

To create or drop a statistics counter, users must have ALTER permission on the parent table or view or be a member of the db_owner fixed database role.

To update statistics, users must have ALTER permission on the parent table or view or be a member of the db_owner fixed database role.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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.