Поделиться через


Метод Table.SwitchPartition (Int32, Table, Int32)

Switches the specified source partition of the table to the specified target of the specified target table.

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public Sub SwitchPartition ( _
    sourcePartitionNumber As Integer, _
    targetTable As Table, _
    targetPartitionNumber As Integer _
)
'Применение
Dim instance As Table 
Dim sourcePartitionNumber As Integer 
Dim targetTable As Table 
Dim targetPartitionNumber As Integer

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

Параметры

  • sourcePartitionNumber
    Тип: System.Int32
    An Int32 value that specifies the partition number of the source partition.
  • targetPartitionNumber
    Тип: System.Int32
    An Int32 value that specifies the partition number of the target partition.

Примеры

Использование файловых групп и файлов для хранения данных

См. также

Справочник

Table Класс

Перегрузка SwitchPartition

Пространство имен Microsoft.SqlServer.Management.Smo

Другие ресурсы

Создание, изменение и удаление таблиц

Таблицы

sp_addmergepartition (Transact-SQL)