Performance tuning questions in SQL Server.

  1. What are the various tools you used for Sql Server Query optimization/Performance tuning
  2. Explain how do you optimize  Server for better performance
  3. Explain how do you optimize  Database for better performance ( Explain in details about, what all we can do with TempDB for better performance)
  4. Explain how do you optimize  Query for better performance
  5. Do you use any DMVs to know about the high cost query and to find any blockings issues  in your server/ database.
  6. What are the various templates  in profiler
  7. What are the various events  in profiler
  8. What are the various filters you have used  in profiler
  9. How/ where do you export the traces captured from profiler.
  10. What is the permission required to run profiler.
  11. Estimated execution plan Vs Actual execution plan.
  12. How do you read the execution plan
  13. Type of execution plan ( formats)
  14. What are the things in Execution plan which you look very first while tuning a query.
  15. What is Table scan, Index scan, index seek
  16. What do you do when you see a Table scan in Execution plan.
  17. What is Hash Join, Merge Join, Nested Loop
  18. What is CPU Cost , IO Cost, Query Cost
  19. For better performance what will be your choice among Temp table and Table variable, and Justify your answer.
  20. What are the best practices you always follow while creating a SP
  21. How do you find if any index is required to get better performance from a query.
  22. Why it is a bad practice to start the name of SP with ‘SP_*******’
  23. What is Dynamic SQL, what is Pros and Cons of Dynamic SQL.
  24. What is the Usage of SET STATISTICS IO and SET STATISTICS TIME
  25. What is a parameter sniffing.
  26. Is it a good practice to call the UDF in where clause.
  27. What is logical reads, how do you reduce the logical reads, Explain with examples.
  28. What is fill factor, fragmentation, index rebuilt, index re-organize.

Leave a comment