473,385 Members | 1,907 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,385 software developers and data experts.

4million db record how to display ?

Hi guys I have 4 million records in a table in one database...

I want to display it in a datagrid... how can I do this efficiently ?

please be specific should I do it in sql server or in .net ?

Thanks
Tom
Nov 16 '05 #1
6 1255

What will the user do with 4 million records?!

"Tom Gao" <to********@optushome.com.au> wrote in message
news:41***********************@news.optusnet.com.a u...
Hi guys I have 4 million records in a table in one database...

I want to display it in a datagrid... how can I do this efficiently ?

please be specific should I do it in sql server or in .net ?

Thanks
Tom

Nov 16 '05 #2
Tom,

In my opinion should you in one or the other way page it
GrandParend -> Parent -> Child >

Just my thought

Cor
"Tom Gao" <to********@optushome.com.au>
Hi guys I have 4 million records in a table in one database...

I want to display it in a datagrid... how can I do this efficiently ?

please be specific should I do it in sql server or in .net ?

Thanks
Tom

Nov 16 '05 #3
How about paging? May be 10-20 records at a time?

"Tom Gao" <to********@optushome.com.au> wrote in message
news:41***********************@news.optusnet.com.a u...
Hi guys I have 4 million records in a table in one database...

I want to display it in a datagrid... how can I do this efficiently ?

please be specific should I do it in sql server or in .net ?

Thanks
Tom

Nov 16 '05 #4
Have a look at this Microsoft article on implementing paging with the
datagrid:
http://support.microsoft.com/kb/307710/EN-US/

John Wood
Blog: http://spaces.msn.com/members/johnwood

"Tom Gao" <to********@optushome.com.au> wrote in message
news:41***********************@news.optusnet.com.a u...
Hi guys I have 4 million records in a table in one database...

I want to display it in a datagrid... how can I do this efficiently ?

please be specific should I do it in sql server or in .net ?

Thanks
Tom

Nov 16 '05 #5
"Tom Gao" <to********@optushome.com.au> wrote in message
news:41***********************@news.optusnet.com.a u...
Hi guys I have 4 million records in a table in one database...

I want to display it in a datagrid... how can I do this efficiently ?

please be specific should I do it in sql server or in .net ?


Step one, turn off ViewState for the Datagrid, and do the query on every
postback.

Next, You'll have to determine for yourself which way is better for your
particular environment. Reading the entire 4M records and letting the
DataGrid figure out which ones to show would probably be the easiest way to
go, but re-selecting 4M records every postback will put a strain on your
data server.

--
Truth,
James Curran
[erstwhile VC++ MVP]
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com

Nov 16 '05 #6
rkc
Tom Gao wrote:
Hi guys I have 4 million records in a table in one database...

I want to display it in a datagrid... how can I do this efficiently ?

please be specific should I do it in sql server or in .net ?


Implement a search option.
Nov 16 '05 #7

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

Similar topics

3
by: DataBard007 | last post by:
My Access 97 database has a form that contains text boxes that display people's names, addresses, phone numbers, etc. The record source is a single table. I created a NextRecord and Previous...
5
by: tdmailbox | last post by:
I have a form with a child form. In the child form there is a list of names that can grow quite large. On the parent form I want to display the first name from the child form. I set up a test...
8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
1
by: Brian | last post by:
Hey all - I have a windows form (using VB) in which I display basic information about a person, all of which is housed (for now) in a single Access table, which I'll call "tblPerson". I would...
0
by: fig000 | last post by:
Hi, I'm trying to use the sqldatasource control and a detailsview to create a fully functional data entry screen; it's quite easy. I can see the strength of creating a master grid associated...
0
by: jeffmagill | last post by:
Hi Everybody, I'm really hoping that someone can help me out because I have spent too much time on this project already! Basically, I have a DetailsView that handles all the Edits for a...
0
by: Andy_Khosravi | last post by:
I'm having a problem trying to optimize the performance of one of my A97 databases. I have very slow record navigation after a change I made to the table structure, and I'm not sure how best to...
3
by: ApexData | last post by:
I am using a continuous form for display purposes. Above this form, a single record is displayed so that when the user presses my NewButton they can enter a NewRecord which gets added to the...
4
by: Susan Bricker | last post by:
I have a form that displays record information in Continuous Record display (scrollable list). One of the fields in the record is an Integer value called "rcode" (reason code). But, I don't want...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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...

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.