다음을 통해 공유


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)