Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 select query against a table which has 5 lakhs of records.

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-11-02 : 11:38:24
Anil writes "I need to query a table which has 5 lakhs of records and return only those fields which satisfy a certain criteria and it may return only 5000 records. The problem is my query is getting time out. Its running for almost 15 minutes. What can be the problem?

steps i took to optimise the query

1)I am not using * in my query. Iam selecting only two field from the table.

2)The query is inside the component. I tried placing the sql query in a stored procedure. Even then the time out occurs.

What else can be the problem.

Any help is appreciated."
   

- Advertisement -