


Wait statistics can be calculated using sys.dm_os_wait_stats Dynamic Management View (DMV), which gives additional information about its current state. It is important to note that this thread is not an operating system thread on which SQL server is installed it is related to the SQLOS thread, which is a pseudo operating system for the SQL Server.

SQL server uses threads for every user request, and the thread is nothing but another program inside our complex program called SQL Server. This is achieved by calculating wait statistics of different threads. To check what is happening, we need to observe how different threads are performing. If the hardware is OK and the installation has been done properly, but the SQL Server is still running slowly, then first we need to find out if there are any software related errors. If we have provided the correct T-SQL code for SQL Server to implementĮven though SQL Server is proprietary software, Microsoft has provided a lot of ways to understand it and use it efficiently.The hardware and installation settings, which may need correcting since SQL Server needs are specific.If there are issues, a couple of basic reasons, and the first two things to check, are: If we have a problem with it, we need to discover why it is not running as we expect.įrom SQL Server we need to pull and push data as fast and as accurately as possible. #1 Finding The CulpritsĪs with any other software, we need to understand that SQL Server is a complex computer program. In this article I will describe a step-by-step procedure for basic performance tuning on one of the top database servers in the market: Microsoft SQL Server (SQL Server, for short). To make sure all operations are executing smoothly, we have to tune our database server for performance. As database sizes grow day by day, we need to fetch data as fast as possible, and write the data back into the database as fast as possible. For mission critical environments, a couple of milliseconds delay in getting information might create big problems. To retain its users, any application or website must run fast.
