Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

OFFSET is not accepting start index

$
0
0
Hi ,I am having a strange issue not sure if this is MSSQL bug or mine :(I have following simple code in my stored proc. even I have hard coded OFFSET to non zero, but it always return result from starting point 0. End limit "Fetch Next" is working perfect. Only problem is with start.[code="sql"] SELECT * FROM #invoices ORDER BY #invoices.InvoiceDateTime ASC OFFSET @StartRow ROWS Fetch NEXT @EndRow ROWS ONLY;[/code]

Viewing all articles
Browse latest Browse all 3145

Trending Articles