A checklist for fixing .NET applications to SQL Server timeout problems and improve execution time

后端 未结 8 1175
离开以前
离开以前 2021-02-02 00:44

A checklist for improving execution time between .NET code and SQL Server. Anything from the basic to weird solutions is appreciated.

Code:

Chan

相关标签:
8条回答
  • 2021-02-02 01:31

    Are you using stored procedures? If so you should watch out for parameter sniffing. In certain situations this can make for some very long running queries. Some reading:

    http://blogs.msdn.com/queryoptteam/archive/2006/03/31/565991.aspx

    http://blogs.msdn.com/khen1234/archive/2005/06/02/424228.aspx

    0 讨论(0)
  • 2021-02-02 01:33

    I like using SQL Server Profiler as well. I like to setup a trace on a client site on their database server for a good 15-30 minute chunk of time in the midst of the business day and log all queries/stored procs with an duration > 100 milliseconds. That's my criteria anyway for "long-running" queries.

    0 讨论(0)
提交回复
热议问题