473,396 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Custom Paging - ASP.NET Grid + SQL 2000

in short, the question is "How do i do custom paging in my asp.net grids" in
SQL 2000.
if i use default paging and if my db has ~200000 records, then i have to
select all the 2 lac records then bind to the grid.
whereas i've to show only 50 rows...

so if i do custom paging i can implement this in sql2005 using row_number,
but how would i simulate this in SQL2000

couple of constraints i have are
1. The queries are dynamic -
a. We allow user to create SQL Statements with in application /
design query using visual designer
b. we apply security on the sql statements based on user's security,
so if the does not have access to columnA we remove that from the query and
execute
c. so the same QueryA can execute differently for UserA,UserB etc
d. we also allow multi-level sorting and search in the grids

this seemed like breeze initially but slowly when i get to this, this seems
to be a bigger problem than i thought... or am i missing something ?!

HELP PLEASE :)

--
Logu Krishnan

Dec 27 '06 #1
3 1574
Create a temp table with an identity column. Insert all the rows into
the temp table and select from it.

Logu Krishnan wrote:
in short, the question is "How do i do custom paging in my asp.net grids" in
SQL 2000.
if i use default paging and if my db has ~200000 records, then i have to
select all the 2 lac records then bind to the grid.
whereas i've to show only 50 rows...

so if i do custom paging i can implement this in sql2005 using row_number,
but how would i simulate this in SQL2000

couple of constraints i have are
1. The queries are dynamic -
a. We allow user to create SQL Statements with in application /
design query using visual designer
b. we apply security on the sql statements based on user's security,
so if the does not have access to columnA we remove that from the query and
execute
c. so the same QueryA can execute differently for UserA,UserB etc
d. we also allow multi-level sorting and search in the grids

this seemed like breeze initially but slowly when i get to this, this seems
to be a bigger problem than i thought... or am i missing something ?!

HELP PLEASE :)

--
Logu Krishnan
Dec 27 '06 #2
Thanks, but is there another way i could do this ? i don't want to select
millions of records and store it in a temp table when all i need is 50
records...
<ra**********@gmail.comwrote in message
news:11*********************@79g2000cws.googlegrou ps.com...
Create a temp table with an identity column. Insert all the rows into
the temp table and select from it.

Logu Krishnan wrote:
>in short, the question is "How do i do custom paging in my asp.net grids"
in
SQL 2000.
if i use default paging and if my db has ~200000 records, then i have to
select all the 2 lac records then bind to the grid.
whereas i've to show only 50 rows...

so if i do custom paging i can implement this in sql2005 using
row_number,
but how would i simulate this in SQL2000

couple of constraints i have are
1. The queries are dynamic -
a. We allow user to create SQL Statements with in application /
design query using visual designer
b. we apply security on the sql statements based on user's
security,
so if the does not have access to columnA we remove that from the query
and
execute
c. so the same QueryA can execute differently for UserA,UserB etc
d. we also allow multi-level sorting and search in the grids

this seemed like breeze initially but slowly when i get to this, this
seems
to be a bigger problem than i thought... or am i missing something ?!

HELP PLEASE :)

--
Logu Krishnan

Dec 27 '06 #3
"Logu Krishnan" <lo********@gmail.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Thanks, but is there another way i could do this ? i don't want to select
millions of records and store it in a temp table when all i need is 50
records...
http://databases.aspfaq.com/database...recordset.html
Dec 27 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Raed Sawalha | last post by:
I have aspx page with user control , in the user control i have DataGrid with custom paging the grid is displaying contents of datatable as following schema <xs:element name="id"...
2
by: asad | last post by:
Hello friends, i am designing a ASP.NET page where i want to use custom paging bcoz data is too heavy so pls tell me how can i use custom paging in ASP.NET Thanks
1
by: tfsmag | last post by:
Hello, I have a function that returns a dynamically created gridview. This works fine, however it does not seem to be able to maintain state when adding sorting or paging to the gridview. Does...
0
by: Roy | last post by:
Hey all, I must be losing my touch. I have made many pages in the 1.1 framework that utilize custom bidirectional paging in datagrids. We've converted over to 2.0 and I've been trying to use the...
0
by: Sjaakie | last post by:
Hi all, I have a Usercontrol containing a pre-formatted DataGrid and some code which by default enables paging (with links 1..20). I now want to add some extra paging information to the...
7
by: =?Utf-8?B?SmVmZiBCZWVt?= | last post by:
The default paging behavior of the gridview doesn't work well with very large sets of data which means we have to implement some sort of custom paging. The examples I have seen (4guysfromrolla,...
1
by: =?Utf-8?B?TG95b2xhIHN0YWxpbg==?= | last post by:
Hi, I am using ASP.Net 2.0 version and Windows'XP OS. I am useing the Grid view control to display the user details along with the paging concept provided by the grid view control. When i...
1
by: =?Utf-8?B?TmVkaW0=?= | last post by:
Is it possible to use DataPager with custom loading classes (I use my own queries because of filtering and paging) and ListView control? ListView control is bound to a DataReader and DataReader...
2
by: Ilyas | last post by:
Hi all I need to implmenet paging across different tables. The tables all have a different name eg Data01, data02 data03 etc, however they are columns which are common to each table, but each...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.