I am new to C# and SQL Server. I have created a SQL Server database and a C# application. The C# application works well and retrieves all records when I use this statement:
SELEC * FROM tableName
and wWhen I use this statement
SELEC TOP 10 * FROM tableName
it displays the top 10 results only.
Now I want to display the next 10 results, when I click on a Next
button. I have tried it and searched online, but didn't find a solution. Please let me know how can I do this. I need the exact SQL query which can retrieve the results from row M upto row N.
Thanks in advance.