Méthode SwitchPartition (Int32, Table)
Bascule la partition spécifiée de la table sur la table cible spécifiée (on suppose que la table cible n'est pas partitionnée).
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub SwitchPartition ( _
sourcePartitionNumber As Integer, _
targetTable As Table _
)
'Utilisation
Dim instance As Table
Dim sourcePartitionNumber As Integer
Dim targetTable As Table
instance.SwitchPartition(sourcePartitionNumber, _
targetTable)
public void SwitchPartition(
int sourcePartitionNumber,
Table targetTable
)
public:
void SwitchPartition(
int sourcePartitionNumber,
Table^ targetTable
)
member SwitchPartition :
sourcePartitionNumber:int *
targetTable:Table -> unit
public function SwitchPartition(
sourcePartitionNumber : int,
targetTable : Table
)
Paramètres
- sourcePartitionNumber
Type : System. . :: . .Int32
Valeur Int32 qui spécifie le numéro de la partition source.
- targetTable
Type : Microsoft.SqlServer.Management.Smo. . :: . .Table
Valeur de l'objet Table qui spécifie la table qui se trouve dans la partition requise.
Voir aussi