Statistic Constructor (SqlSmoObject, String)
Initializes a new instance of the Statistic class on the specified parent object and with the specified name.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Sub New ( _
parent As SqlSmoObject, _
name As String _
)
public Statistic (
SqlSmoObject parent,
string name
)
public:
Statistic (
SqlSmoObject^ parent,
String^ name
)
public Statistic (
SqlSmoObject parent,
String name
)
public function Statistic (
parent : SqlSmoObject,
name : String
)
Parameters
- parent
A SqlSmoObject object value that is the parent of the Statistic object.
- name
A String value that specifies the name of the Statistic object.
Remarks
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Example
How to: Create and Update Statistics in Visual Basic .NET
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
Statistic Class
Statistic Members
Microsoft.SqlServer.Management.Smo Namespace
Other Resources
Creating and Updating Statistics
CREATE STATISTICS (Transact-SQL)