Méthode Table.SwitchPartition (Table, Int32)

Switches the table to the partition with the specified partition number of the specified target table.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Sub SwitchPartition ( _
    targetTable As Table, _
    targetPartitionNumber As Integer _
)
'Utilisation
Dim instance As Table 
Dim targetTable As Table 
Dim targetPartitionNumber As Integer

instance.SwitchPartition(targetTable, _
    targetPartitionNumber)
public void SwitchPartition(
    Table targetTable,
    int targetPartitionNumber
)
public:
void SwitchPartition(
    Table^ targetTable, 
    int targetPartitionNumber
)
member SwitchPartition : 
        targetTable:Table * 
        targetPartitionNumber:int -> unit
public function SwitchPartition(
    targetTable : Table, 
    targetPartitionNumber : int
)

Paramètres

  • targetPartitionNumber
    Type : System.Int32
    An Int32 value that specifies the partition number of the target partition.

Exemples

Utilisation de fichiers ou de groupes de fichiers pour stocker des données

Voir aussi

Référence

Table Classe

Surcharge SwitchPartition

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Création, modification et suppression de tables

Tables

sp_addmergepartition (Transact-SQL)