views:

35

answers:

2

Can we improve the performance of the report viewer. Instead of bringing the whole dataset, can we bring only the page?

A: 

Yes. Use the limit clause.

Scott Saunders
You mean TOP - `LIMIT` is MySQL/Postgres syntax.
OMG Ponies
Sorry about that - the sql-server tag was added after I posted.
Scott Saunders
A: 

AFAIK, controls can be AJAX based, but the reports themselves bring the whole data in and render it. I have not seen reports that bring data back page by page as implemented on many web sites.

Now if you just want to show a subset of data, you can do something like this

SELECT TOP 100 ColumnList
FROM Tables
Raj More