Click here to Skip to main content
15,896,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have huge database in sql server 2005 and when i use select query with where conditions then it will get more response time to display that data on vb.net datagridview. can anybody help me to overcome this issue or how to use JIT.
Posted

You don't use JIT - read this for more of an explanation of what exactly JIT is http://en.wikipedia.org/wiki/Just-in-time_compilation[^].

As for you query, take a look at this article http://hungred.com/useful-information/ways-optimize-sql-queries/[^]
 
Share this answer
 
Database:
1. Create index on columns which you use in where conditions.
2. Use same datatypes on where conditions e.g. emp_id (number) = 123
3. Create a Stored Procedure to fetch the data rather than using dynamic queries
4. Fetch data from tables rather than views
5. If you fetch data from multiple tables, use joins rather than subqueries
6. Avoid using functions on select columns

.Net code:
1. Use classes from SQL provider (System.Data.SqlClient) only to fetch the data.

These are the steps you can start with for the performance improvement. Once you start these kind of optimization, you will realize that there is no magic to get data within seconds.
 
Share this answer
 
v2

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