|
Hi, Please, I'm developing a web application and I have two tables that could be many many records. I need make a query search (stored procedure) that limit the result to 20 records for page. I think that I must use ROW_NUMBER ou create a temp table, but the fact is that I don´t know why. Can you help me? Thanks Marcos Cruz, São Paulo, Brasil
(comments are locked)
|
|
Also refer method 4 http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx Here is the code I wonder if you want to re-post that here (with a link to your blog too) so that ask.sqlteam has a complete answer? Just a thought ... :)
Oct 16 '09 at 07:06 AM
Kristen ♦
I dont understand what you actually meant. Do you think my reply is just a duplicate to other reply? [:)].
Oct 19 '09 at 03:21 AM
Madhivanan
Sorry. No, I mean to duplicate the code from your Blog here too - so that there is a complete answer here. I think better for Ask.SQLTeam "completeness", good for Google Spiders, etc.
Oct 19 '09 at 11:10 AM
Kristen ♦
Kristen, Now I understand what you meant. Thanks. I will do it [:)]
Oct 20 '09 at 03:13 AM
Madhivanan
(comments are locked)
|
|
You can do paging like this in SQL 2005+ what is the purpose of page.row > 0 ?
Oct 16 '09 at 12:08 AM
Squirrel 1
(comments are locked)
|

