다음을 통해 공유


IdentitySeed Property

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The IdentitySeed property exposes the initial row value for an identity column.

구문

object
.IdentitySeed [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list

  • value
    A long integer greater than or equal to 1

Data Type

Long

Modifiable

Read/write prior to Microsoft SQL Server column creation. Read-only for existing columns.

Prototype (C/C++)

HRESULT GetIdentitySeed(LPLONG pRetVal);
HRESULT SetIdentitySeed(LONG NewValue);

주의

SQL Server allows the row identity property on a single column within a table. Identity, like a primary key, identifies a row uniquely. SQL Server implements row identification using a numeric value. As rows are inserted, SQL Server generates the row value for an identity column by adding an increment to the existing maximum value.

For example, the identity values for the first three rows inserted into a table containing a column defined with identity, an identity seed of 1, and an increment value of 3, are 1, 4, and 7.

Applies To: