Seal Report Forum
»
Report Edition
»
Advanced Tricks and Tips
»
Limit the number of source records in SQLServer and Oracle
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
It is always interesting to be able to limit the number of records that will be received and processed by the report engine. At least at design time, if you have a huge table, you want to design your report with a small amount of rows for performances reason. If you are using SQLServer, use the TOP option of the SELECT clause: Code:select top 100 from aTable
will return only the first 100 rows. Select your model in the TreeView, then edit the Select Clause property and add the after the SELECT If you are using Oracle, use the rownum restriction in your WHERE clause: Select your model in the TreeView and add in the Restrictions box. Edited by user Friday, February 7, 2014 7:15:42 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
I have just seen that the SELECT TOP xxx works also for MS Access...
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 4/4/2016(UTC) Posts: 5 Location: Pune
|
How can we add server side pagination to reports?
also can you please let me know how we can limit the number of records while using SEALMASTERTABLE? like it fires whole query -> brings result -> applies client side filters on the result. so each time it fires the whole query on the database. is there any alternate solution to it?
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 4/4/2016(UTC) Posts: 5 Location: Pune
|
Hi Admin,
We would like to sponsor it,
can you please provide the details for it.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
Good idea, I will contact you directly by email...
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
Note the the new 3.1 versions supports now server side pagination....
|
|
|
|
Seal Report Forum
»
Report Edition
»
Advanced Tricks and Tips
»
Limit the number of source records in SQLServer and Oracle
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.