This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The EnumIdentityRangeInfo method returns a QueryResults object that enumerates identity range information about articles based on a table.
A QueryResults object that contains one result set defined by these columns.
If already replicated, whether an automatic identity range is assigned.
Current identity value.
Amount by which the identity value is incremented.
Maximum boundary of the identity range.
If automatic identity range is enabled, indicates the starting point of next range.
Publisher identity range size.
Whether the table is already replicated as an article in another publication.
Subscriber identity range size.
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.