This article will cover the usage details and performance advantages of the memory-optimized table variables.
Read more »Performance
Getting started with SQL Server Query Tuning
April 21, 2020This article will cover some essential techniques for SQL query tuning. Query tuning is a very wide topic to talk about, but some essential techniques never change in order to tune queries in SQL Server. Particularly, it is a difficult issue for those who are a newbie to SQL query tuning or who are thinking about starting it. So, this article will be a good starting point for them. Also, other readers can refresh their knowledge with this article. In the next parts of this article, we will mention these techniques that help to tune queries.
Read more »Importance of SQL Server Max Degree of Parallelism
April 21, 2020In this article, we will discuss how the Max Degree of Parallelism works in SQL Server and how does it improve the query performance. SQL Server Degree of Parallelism is the processor conveyance parameter for a SQL Server operation, and it chooses the maximum number of execution distribution with the parallel use of different logical CPUs for the SQL Server request. Microsoft SQL Server allows setting this Degree of Parallelism parameter value at the SQL Server instance level or Query level. If you do not specify the SQL Server Degree of Parallelism value at the SQL Server instance, then each request or operation has to rely on SQL Server default value and random CPU allocations.
Read more »SQL Server Hardware Performance Tuning
April 14, 2020SQL Server Performance Tuning can be a difficult assignment, especially when working with a massive database where even the minor change can raise a significant impact on the existing query performance. Performance Tuning always plays a vital role in database performance as well as product performance. A query can be optimized with the proper evaluation of a piece of code or SQL Statements. The important thing in Query Optimization is to understand, which process or expression needs evaluation in the piece of code. Everyone expects to get a quick response from the query on the production, but How?
Read more »SQL Server Update Statistics using database maintenance plans
April 13, 2020This article explores SQL Server Update Statistics using the database maintenance plan.
Read more »Understanding the deadlock definition in SQL Server
April 7, 2020This article explains the deadlock definition in SQL Server, and it also mentions how to capture deadlocks with extended events.
Read more »Table-Valued Parameters in SQL Server
April 6, 2020Table-Valued Parameters aka TVPs are commonly used to pass a table as a parameter into stored procedures or functions. They are helpful in a way, we can use a table as an input to these routines and we can get rid of dealing more complex steps to achieve this process.
Read more »Database Design and Logical Asseveration for SQL Query Optimization
March 11, 2020Database design and Logical Asseveration play a vital role in database performance and SQL Query optimization. Both have different parameters to make your database and the query accurate.
Read more »Overview of Non-Clustered indexes in SQL Server
January 16, 2020This article gives an introduction of the non-clustered index in SQL Server using examples.
Read more »How to detect and prevent unexpected growth of the TempDB database
January 13, 2020In this article, we will discuss the best practices that should be followed in order to keep the TempDB database in a healthy state and prevent any unexpected growth of the database, in addition to the procedure that can be followed to detect this unexpected growth once occurred.
Read more »Using SQL CREATE INDEX to create clustered and non-clustered indexes
January 10, 2020The SQL CREATE INDEX statement is used to create clustered as well as non-clustered indexes in SQL Server. An index in a database is very similar to an index in a book. A book index may have a list of topics discussed in a book in alphabetical order. Therefore, if you want to search for any specific topic, you simply go to the index, find the page number of the topic, and go to that specific page number. Database indexes are similar and come handy. Particularly, if you have a huge number of records in your database, indexes can speed up the query execution process. There are two major types of indexes in SQL Server: clustered indexes and non-clustered indexes.
Read more »Overview of SQL Server Clustered indexes
December 23, 2019This article targets the beginners and gives an introduction of the clustered index in SQL Server.
Read more »Replace a SQL While loop and a cursor with ranking functions in SQL Server for better query performance
December 19, 2019SQL While loop and cursor are the most common approach to repeat a statement on condition-based or determined limits. Loop and cursor can be utilized in a circumstance to deal with row-based processing in T-SQL. We generally observe moderate execution of old made procedures, which are composed of using loop and cursors. Those procedures take time, especially when the number of iteration count is big for the execution.
Read more »Query Performance Issues on VARCHAR Data Type Using an N Prefix
December 6, 2019In this article, we’ll discuss data type VARCHAR and query performance issues associated with utilizing the lower level VARCHAR data type. CHAR, VARCHAR and NVARCHAR are data types that support storing information in text format in a SQL Server database. These data types allow a wide assortment of character sets in the defined field or column in the database table.
Read more »Forwarded Records Performance issue in SQL Server
December 5, 2019This article discusses the Forwarded Records and its performance issues for heap tables in SQL Server.
Read more »SQL Table Variable Deferred Compilation in SQL Server 2019
November 25, 2019In an article, An overview of the SQL table variable, we explored the usage of SQL table variables in SQL Server in comparison with a temporary table. Let’s have a quick recap of the table variable:
Read more »SQL Server Database Metrics
October 2, 2019Summary
There is a multitude of database metrics that we can collect and use to help us understand database and server resource consumption, as well as overall usage.
This data can include hardware statistics, such as measures of CPU or memory consumed over time. We can also examine database metadata, including row counts, waits, and deadlocks.
Read more »Using SQL Server Database Metrics to Predict Application Problems
September 27, 2019Summary
Database metrics can be collected, maintained, and used to help predict when processes go awry so problems can be resolved before they become severe. Understanding when an application or process misbehaves is not always easy. We are often left waiting until a server, application, or service breaks or enters an undesirable state before we know something is wrong. At that point, we are forced to rush and resolve a production problem quickly, before its impact becomes severe.
Read more »An Overview of Instant File Initialization in SQL Server
September 25, 2019This article gives an overview of Instant File Initialization and its benefits for SQL Server database creation, restoration and file growth.
Read more »SQL Server Index Fill factor with a Performance Benchmark
September 9, 2019In this article, we will study in detail about the how SQL Server Index Fill factor works.
Read more »SET NOCOUNT ON statement usage and performance benefits in SQL Server
August 26, 2019Have you ever noticed SET NOCOUNT ON statement in T-SQL statements or stored procedures in SQL Server? I have seen developers not using this set statement due to not knowing it.
Read more »sp_updatestats overview and usage
August 20, 2019In this article, we will learn usage details of the sp_updatestats built-in store procedure which helps to update all statistics in a SQL Server database. First of all, we will take a glance at the statistics concept in SQL Server.
Read more »Performance Monitoring via SQL Server Query Store
August 19, 2019SQL Server Query Store is a performance monitoring tool that helps us evaluate the performance of a SQL query in terms of several different performance metrics such as CPU and Memory Consumption, execution time and the I/O cycles consumed by the query. Query store is similar to the windows “Task Manager”. A task manager provides information about the CPU, Memory, Network and Disc consumption of a process. Similarly, the Query Store provides insight to similar information.
Read more »Memory-Optimized TempDB Metadata in SQL Server 2019
July 10, 2019Introduction
In-memory technologies are one of the greatest ways to improve performance and combat contention in computing today. By removing disk-based storage and the challenge of copying data in and out of memory, query speeds in SQL Server can be improved by orders of magnitude.
Read more »Optimizing SQL Server index strategies
July 2, 2019Index strategies overview
This article is about techniques for optimizing the SQL Server indexes strategy. It is an appendix of the SQL index overview and strategy article in which I covered different areas like what indexes actually do, how to create them, and I briefly mentioned some index design guidelines. Furthermore, I also presented an example of how to design them by tuning and optimizing queries, so I’ve really tried to cover all but there is always more when it comes to SQL Server indexes.
Read more »