Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have one table named abc and there is milion rows.

when i Select million records from table in Sqlserver2008R2.

How to improve performance for select query? If anybody knows this Please intimate me.


Thanks in advance

Regards
Santhoshkumar
Posted
Comments
Kornfeld Eliyahu Peter 20-Jan-14 5:48am    
There are some best practices like proper field types, indexing, but it's hard to say anything sure without seeing your select statement...

 
Share this answer
 
v2
Comments
24983 20-Jan-14 6:24am    
Thanks for your information . When i display data in Crystal Report and its loading slow.
thatraja 20-Jan-14 7:29am    
Always include complete details in your questions for more answers. Check my updated answer
I have few points:

1. Define indexes on table
2. Use SET NOCOUNT ON before select statement
3. Use column name in SELECT statement instead of * (astrik).
 
Share this answer
 

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