I am Working on pagination in jsp(and i am new to writing sql).
I done my research and found simple queries from
pagination in SQL server 2008 and How to do pagination in SQL Server 2008
SELECT * FROM document ORDER BY id OFFSET
"+iPageNo+" ROWS FETCH NEXT 10 ROWS ONLY;
in the above query ipageNo is coming 0 for the first time(even i tried by putting 1 manually)
Still giving the error Incorrect syntax near 'OFFSET'.
What i missed here ? Thanks in advance.