EnumIdentityRangeInfo Method
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The EnumIdentityRangeInfo method returns a QueryResults object that enumerates identity range information about articles based on a table.
구문
object
.EnumIdentityRangeInfo( )
as
QueryResults
Parts
- object
Expression that evaluates to an object in the Applies To list
Prototype (C/C++)
HRESULT EnumIdentityRangeInfo(LPSQLDMOQUERYRESULTS *ppResults);
Returns
A QueryResults object that contains one result set defined by these columns.
Column | Data type | Description |
---|---|---|
auto_identity_support |
bit |
If already replicated, whether an automatic identity range is assigned. |
current_identity |
big_int |
Current identity value. |
identity_increment |
integer |
Amount by which the identity value is incremented. |
max_identity |
big_int |
Maximum boundary of the identity range. |
next_starting_seed |
big_int |
If automatic identity range is enabled, indicates the starting point of next range. |
publisher_range |
big_int |
Publisher identity range size. |
replicated |
bit |
Whether the table is already replicated as an article in another publication. |
subscriber_range |
big_int |
Subscriber identity range size. |
threshold |
integer |
Identity range threshold percentage. |
주의
A table may contain only one identity column. If adding the table to a new publication, it may be neither possible nor necessary to assign an identity range to the Publisher or Subscriber automatically. If the table is also used in other publications, EnumIdentityRangeInfo returns information about whether the identity range was assigned.
[!참고] If an application calls EnumIdentityRangeInfo on an instance of SQL Server version 7.0, the constant, SQLDMO_E_SQL80ONLY, and the message "This property or method requires Microsoft SQL Server 2000 or later" are returned.