Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
1.00/5 (6 votes)
See more: , +
I want to retrieve over 20 millions of record from SQL server database. Query which is written in existing project is taking 10-15 minutes to generate output. I want to achieve it in few seconds.
So is there any way or query to achieve that?? or what else i have to do in database so that i can get all the records as fast as possible.
Posted
Updated 15-Jul-14 6:14am
v2
Comments
Richard MacCutchan 15-Jul-14 12:16pm    
Have you any idea what you are going to do with 20 million records? Display them on the screen for some poor user to try and find the one item he/she is interested in?

It's impossible!

Please, have a look at past discussion[^]
 
Share this answer
 
It Might Be Possible please Use INDEXING in This problem
..
..
Refer This Link I get For you
http://www.tutorialspoint.com/sql/sql-indexes.htm[^]
..
Thanks
 
Share this answer
 
Comments
Bernhard Hiller 10-Sep-14 2:14am    
20 Million records are surely larger than 1 Gigbyte (that's merely 50 bytes per record - do you think such a low number is enough)? Who has such a fast internet connection (look at the tag: ASP.NET) to transfer that within a few seconds? Hardly a company has a Gigabit network internally.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900