PC Review


Reply
Thread Tools Rate Thread

4million db record how to display ?

 
 
Tom Gao
Guest
Posts: n/a
 
      5th Jan 2005
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


 
Reply With Quote
 
 
 
 
Julia
Guest
Posts: n/a
 
      5th Jan 2005

What will the user do with 4 million records?!

"Tom Gao" <(E-Mail Removed)> wrote in message
news:41dbd09a$0$13283$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      5th Jan 2005
Tom,

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

Just my thought

Cor


"Tom Gao" <(E-Mail Removed)>

> 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
>
>



 
Reply With Quote
 
Shiva
Guest
Posts: n/a
 
      5th Jan 2005
How about paging? May be 10-20 records at a time?

"Tom Gao" <(E-Mail Removed)> wrote in message
news:41dbd09a$0$13283$(E-Mail Removed)...
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



 
Reply With Quote
 
John Wood
Guest
Posts: n/a
 
      5th Jan 2005
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" <(E-Mail Removed)> wrote in message
news:41dbd09a$0$13283$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
James Curran
Guest
Posts: n/a
 
      5th Jan 2005
"Tom Gao" <(E-Mail Removed)> wrote in message
news:41dbd09a$0$13283$(E-Mail Removed)...
> 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



 
Reply With Quote
 
rkc
Guest
Posts: n/a
 
      5th Jan 2005
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remind me folks - what is the event that fires every time the record changes ( i want to display the record number) Chris K Microsoft Access Form Coding 2 25th Jul 2010 09:23 PM
Display record on Main Form from subform record selection bjwheeler@gmail.com Microsoft Access Forms 2 18th Sep 2008 01:22 AM
Find button to locate record in form and display that record esleea@gmail.com Microsoft Access Form Coding 11 17th Oct 2007 09:43 PM
Find Record action to display a record that is the current record on another for Tom K via AccessMonster.com Microsoft Access Macros 0 31st Oct 2005 07:45 PM
Report based on a new record doesn't display record =?Utf-8?B?Si5TZXJh?= Microsoft Access Reports 1 31st Dec 2004 06:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:03 PM.