SQL Server Error Code – 11721 next value for function cannot be used d

In this blog post, you’ll learn more about the SQL Server Error Code 11721 and the error message description that is shown

SQL Server Error Code

11721

SQL Server Error Description for the Code :11721

NEXT VALUE FOR function cannot be used directly in a statement that uses a DISTINCT, UNION, UNION ALL, EXCEPT or INTERSECT operator.