ALTER funkcja PARTITION (języka Transact-SQL)

ALTRALUS

Ostrzeżenie

UWIERZYTELNIANIEBADB

Topic link iconKonwencje składni języka Transact-SQL

ALTER PARTITION FUNCTION partition_function_name()
{ 
    SPLIT RANGE ( boundary_value )
  | MERGE RANGE ( boundary_value ) 
} [ ; ]

Argumenty

  • partition_function_name
    BALO

  • CLboundary_value
    Adds one partition to the partition function.boundary_value determines the range of the new partition, and must differ from the existing boundary ranges of the partition function.Na podstawie boundary_value, Database Engine Dzieli jedną z istniejących zakresów do dwóch. Z nimi gdzie jeden nowy boundary_value znajduje się jest uważany za nowej partycji.

    Important noteImportant Note:

    CPCRAGCRAKCRASCRCFCRDBCRDECRDF

  • CREDboundary_value
    CRFNZAKRES)boundary_value) musi być wartością istniejące obramowanie, w których wartości z elementów usuniętych partycji są scalane. grupa plików, które pierwotnie zostały wstrzymane boundary_value zostaną usunięte z schemat partycji, chyba że jest używane przez pozostałe partycji lub jest oznaczony przy użyciu właściwość używany NEXT. The merged partition resides in the filegroup that originally did not hold boundary_value.boundary_value is a constant expression that can reference variables (including user-defined type variables) or functions (including user-defined functions).It cannot reference a Transact-SQL expression.boundary_valuemust either match or be implicitly convertible to the data type of its corresponding partitioning column, and cannot be truncated during implicit conversion in a way that the size and scale of the value does not match that of its corresponding input_parameter_type.

Remarks

CRQUCRRL

CRRTCRRUCRSB

  • CRSC

  • CRSK

    Uwaga

    CRSM

  • Usunąć i ponownie utworzyć istniejący indeks partycjonowany przy użyciu Transact-SQL Instrukcja CREATE INDEX z DROP EXISTING = ON klauzula.

  • CRSV

CRTB

CRTE

SQL Server 2008 CRTYCRVW

Uprawnienia

CRXS

  • Indeksy przestrzennyTo uprawnienie domyślnie członkowie sysadmin Rola serwera i db_owner and db_ddladmin stałe role bazy danych.

  • DL

  • EX

Przykłady

A.IM

The following example creates a partition function to partition a table or index into four partitions.ALTER PARTITION FUNCTION splits one of the partitions into two to create a total of five partitions.

B.RF

SHDN