0

I am using SQl Sever 2008 and I need to optimize my queries. For this, I am using Database Engine Tuning Advisor.

My question is, can I check the performance of only one SQL query at a time or more than one using new session?

3
  • 2
    possible duplicate of Sql Query Optimization Commented Feb 14, 2011 at 12:58
  • You should only be tuning one query at a time. If all of your queries need tuning, there is something very wrong. I would suspect you don't have any indexes at all or you are using bad techniques such as correlated subqueries or views that call other views. If you don't have indexes start with indexing your foreign keys and then look at what you use in the where clauses. Commented Feb 14, 2011 at 15:26
  • @ HLGEM :I have added indexe for each table... So no need to worry about that.. Commented Feb 15, 2011 at 4:39

1 Answer 1

0

If you want to check the performance of your queries, as you state in your post, your best bet is to bring up SQL Profiler and examine the query statistics it reports. The Tuning Advisor can suggest things you can try, to improve performance. SQL Profiler will show you actual query performance statistics. Profiler can be invaluable in showing you exactly what's happening on your SQL Server and with your queries.

Sign up to request clarification or add additional context in comments.

1 Comment

And don;t forget to check the execution plans.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.