Hello ,
I created Sequencing in SQL Server 2012 database . I am trying to get the sequence number using NEXT VALUE FOR function in MII .
SELECT NEXT VALUE FOR PROJECT_SEQ AS PROJECT_ID . I am getting below error
com.microsoft.sqlserver.jdbc.SQLServerException: NEXT VALUE FOR function cannot be used if ROWCOUNT option has been set, or the query contains TOP or OFFSET.
THE NEXT VALUE FOR function doesn't support the ROWCOUNT , TOP or OFFSET in the query but looks like MII internally is sending ROWCOUNT. Is there any way to bypass ROWCOUNT in MII ?
Thanks,
Naresh