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

Switches the specified partition of the table to the specified target table specified (assuming the target table is not partitioned).

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

Синтаксис

'Декларация
Public Sub SwitchPartition ( _
    sourcePartitionNumber As Integer, _
    targetTable As Table _
)
'Применение
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
)

Параметры

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

Примеры

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

См. также

Справочник

Table Класс

Перегрузка SwitchPartition

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

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

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

Таблицы

sp_addmergepartition (Transact-SQL)