Statistic Class

The Statistic class represents a Microsoft SQL Server statistic counter.

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

Syntax

'Declaration
Public NotInheritable Class Statistic
    Inherits ScriptNameObjectBase
    Implements ICreatable, IDroppable, IMarkForDrop, IScriptable
public sealed class Statistic : ScriptNameObjectBase, ICreatable, IDroppable, IMarkForDrop, 
    IScriptable
public ref class Statistic sealed : public ScriptNameObjectBase, ICreatable, IDroppable, IMarkForDrop, 
    IScriptable
public final class Statistic extends ScriptNameObjectBase implements ICreatable, IDroppable, 
    IMarkForDrop, IScriptable
public final class Statistic extends ScriptNameObjectBase implements ICreatable, IDroppable, 
    IMarkForDrop, IScriptable

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

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.

Inheritance Hierarchy

System.Object
   Microsoft.SqlServer.Management.Smo.SmoObjectBase
     Microsoft.SqlServer.Management.Smo.SqlSmoObject
       Microsoft.SqlServer.Management.Smo.NamedSmoObject
         Microsoft.SqlServer.Management.Smo.ScriptNameObjectBase
          Microsoft.SqlServer.Management.Smo.Statistic

Beispiel

How to: Create and Update Statistics in Visual Basic .NET

Threadsicherheit

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.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

Statistic Members
Microsoft.SqlServer.Management.Smo Namespace

Andere Ressourcen

Creating and Updating Statistics
CREATE STATISTICS (Transact-SQL)