6 Months Free & No Setup Fees ASP.NET Hosting!
Skip Navigation Links
C# Corner Home
Forum Home
Latest 50
Unanswered
Win Prizes
All Time Leaders
Jump to CategoryExpand Jump to Category
Login 
    Welcome Guest!
 Search Forum For :  
X
 Login
Please login to submit a new post, reply and edit exiting posts, see user profiles, and access more features. If you are not a registered member, Register here.
User Id / Email:
Password:  
Forgot Password | Forgot UserName
   Home » .NET General » SQL server 2008: Selecting over a million records
       
Author Reply
Darnell Dudley
posted 616 posts
since Feb 20, 2010 
from

SQL server 2008: Selecting over a million records

  Posted on: 19 Feb 2012       
Selecting over a million records, what would be the best approach with performance. I am going to make up a table we can work later. But i want to get some information first. What are all the resources I need as for as CPU etc..........? Lets start there.
Sam Hobbs
posted  6490 posts
since  Sep 07, 2009 
from  Los Angeles, California, USA

 Re: SQL server 2008: Selecting over a million records
  Posted on: 19 Feb 2012        0  
It depends on what you need to do. The best performance would be a class that provides only forward-only access to a single table in any order (not sorted).
Thinking is a feeling; pleasant for some and unpleasant for others.
Darnell Dudley
posted  616 posts
since  Feb 20, 2010 
from 

 Re: SQL server 2008: Selecting over a million records
  Posted on: 19 Feb 2012        0  
Is C# the right language to handle this with performance, I am doing some research I am hearing that, a native language like c , c++ will be much faster, whats your opinion Sam? I am still learning.
Sam Hobbs
posted  6490 posts
since  Sep 07, 2009 
from  Los Angeles, California, USA

 Re: SQL server 2008: Selecting over a million records
  Posted on: 19 Feb 2012        0  
C# provides good or excellent performance for most things and I assume C# is good for whatever you are doing. If the people saying that C++ is significantly faster are people that are experienced with C++ but not C# then of course you must be skeptical of what they say.
Thinking is a feeling; pleasant for some and unpleasant for others.
Darnell Dudley
posted  616 posts
since  Feb 20, 2010 
from 

 Re: SQL server 2008: Selecting over a million records
  Posted on: 19 Feb 2012        0  
From they were saying that c sharp has to run though and interpreter which will take time, but since c, c++ is a native language it skips that interpreter process, I need to find out what that means.
Sam Hobbs
posted  6490 posts
since  Sep 07, 2009 
from  Los Angeles, California, USA

 Re: SQL server 2008: Selecting over a million records
  Posted on: 19 Feb 2012        0  
Anyone saying that C# is interpreted does not understand how .Net works. It is not that simple.
Thinking is a feeling; pleasant for some and unpleasant for others.
Suthish Nair
posted  4906 posts
since  Jul 09, 2009 
from  India

 Re: SQL server 2008: Selecting over a million records
  Posted on: 19 Feb 2012        0  
You can introduce custom paging using stored procedures also for selecting records.
Darnell Dudley
posted  616 posts
since  Feb 20, 2010 
from 

 Re: SQL server 2008: Selecting over a million records
  Posted on: 19 Feb 2012        0  
can you point me to a tutorial using custom paging, i never really use the term custom paging, what is custom paging?
Darnell Dudley
posted  616 posts
since  Feb 20, 2010 
from 

 Re: SQL server 2008: Selecting over a million records
  Posted on: 22 Feb 2012        0  
Ok now that we have that clear lets make an example, say for instance we have one table and we may have to one join to pull in related data possible, I am going to make a table call Contacts. We are going to say there are a million contacts in this table. I am just a making up table representing what I am really doing, but using a contact table to communicate from. I cant go to much in detail. So we have this Contact table and also Education table below. An a customer wants to view all records  or export all records to common format file like excel, csv, etc......

What would be the best architecture or should say how would design this effectively. My first take is to set up the stored procedures in SQL Server 2008 Mngt Studio etc.. I want to do this as team, this will pushing my learning when it comes to performance. First time working with a million records. This is my next learning curve

Contact Table            
               
ID Fname Lname City State ZipCode Address PhoneNo
















Education Table            
               
ID School Major Classification fk_ContactId      

Sam Hobbs
posted  6490 posts
since  Sep 07, 2009 
from  Los Angeles, California, USA

 Re: SQL server 2008: Selecting over a million records
  Posted on: 22 Feb 2012        0  
I cannot say very much that can help. I assume that you will need an index for the fk_ContactId field of the Education Table. Obviously the primary key for each table will be the ID filed for each of them. So when you do a join of the two tables using the fk_ContactId field then an index will likely help very much.
Thinking is a feeling; pleasant for some and unpleasant for others.
Darnell Dudley
posted  616 posts
since  Feb 20, 2010 
from 

 Re: SQL server 2008: Selecting over a million records
  Posted on: 23 Feb 2012        0  
Can you send me to a good tutorial on creating indexes.
       
Team Foundation Server Hosting
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!

 Hosted by MaximumASP  |  Found a broken link?  |  Contact Us  |  Terms & conditions  |  Privacy Policy  |  Site Map  |  Advertise with us
Current Version: 5.2011.3.12
 © 1999 - 2012  Mindcracker LLC. All Rights Reserved