Udostępnij za pośrednictwem


PartitionScheme Constructor (Database, String)

Initializes a new instance of the PartitionScheme class, and sets the name of the partition scheme and the database to which it belongs.

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

Syntax

'Declaration
Public Sub New ( _
    database As Database, _
    name As String _
)
public PartitionScheme (
    Database database,
    string name
)
public:
PartitionScheme (
    Database^ database, 
    String^ name
)
public PartitionScheme (
    Database database, 
    String name
)
public function PartitionScheme (
    database : Database, 
    name : String
)

Parameters

  • database
    A Database object that specifies the database on which to create the partition scheme.
  • name
    A String value that specifies the name of the partition scheme.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Example

How to: Set Up a Partition Scheme for a Table 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

PartitionScheme Class
PartitionScheme Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Using Table and Index Partitioning
CREATE PARTITION SCHEME (Transact-SQL)