Forum Discussion
SezMe
Oct 25, 2024Copper Contributor
Using a Sequence
Consider this table: CREATE TABLE [Events](
[EventID] [int] NULL,
<< Other columns >> and this Sequence: CREATE SEQUENCE [NewEventID]
AS [int]
START WITH 1
INCREMENT BY 1
MINVALUE ...
rodgerkong
Oct 25, 2024Iron Contributor
There are more limitations than the message mentioned, This article descripted https://learn.microsoft.com/en-us/sql/t-sql/functions/next-value-for-transact-sql?view=sql-server-ver16#limitations-and-restrictions
Since we can't see the context that you called sp, guess there might be having SET ROWCOUNT ON or something else.
SezMe
Oct 25, 2024Copper Contributor
rodgerkongI ran Example E in the page for "NEXT VALUE FOR" and got the same error message so the problem has nothing to do with my query. Now I am really at a loss....