Enabling Growth Through Performance
Enabling Growth Through Performance

Posts Tagged ‘SQL Server’

SQL Server Memory-Optimized Tables

RAM (Memory)

Leveraging In-Memory Technology for Improved Performance Introduction SQL Server’s memory-optimized tables, introduced in SQL Server 2014, are designed to significantly improve performance by leveraging in-memory technology. These tables store data directly in memory, enabling faster access and reducing the need for disk-based storage. In this article, we will explore memory-optimized tables, their benefits, and how…

Read More

SQL Server Indexing – Fill Factor

Half Glass

Setting Appropriate Fill Factors for Optimal Performance Introduction Indexing is an essential component of database performance tuning in SQL Server. It enables the efficient retrieval of data by creating a data structure that maps the values in a specific column or set of columns to their corresponding rows in the table. One critical aspect of…

Read More

SQL Server Lock Escalation

Lock Escalation

Introduction SQL Server is a powerful and flexible relational database management system (RDBMS) designed to manage and store data efficiently. One of its key features is the ability to manage concurrent access to data through its locking mechanism. When multiple users or applications access data simultaneously, SQL Server must ensure data integrity and maintain the…

Read More

SQL Server Deadlocks

Deadlock

Understanding and Avoiding Them Deadlocks are a common problem in all relational database systems that can lead to poor performance and even data loss (in some special cases). A deadlock occurs when two or more transactions are waiting for each other to release a resource, such as a database row or page, that they both…

Read More

SQL Server Data Compression

Compression

A Deep Dive into Page and Row Compression Introduction As businesses continue to amass large quantities of data, efficient data management becomes increasingly important. One critical aspect of data management is data compression, which can help reduce storage costs, improve query performance, and optimize resource usage. Microsoft SQL Server, an industry-leading relational database management system…

Read More

SQL Script Generation

SQL Script Generator

Update 2023: Check out our new documentation site for all of our various tools. How many times have you needed to script out a table from a SQL Server database? What about all of the indexes? Or maybe it was just the procedures in a particular schema? Or export all of your data as insert/update…

Read More

Mapping a Drive with XP_CMDSHELL

Today I want to talk about one of my favorite tricks that’s not talked about much: mapping a network drive under the SQL Server account. You see, mapped drives are “per user” – so if you map one on the SQL server, then SQL server can’t see it. Likewise, if you map one for SQL…

Read More

Enable and Disable xp_cmdshell

xp_cmdshell is one of those somewhat hidden gems/power-tools in SQL Server that can both make life easy and very insecure all at the same time. You see, this function allows any SQL Server administrator to run any command/program/shell-script/batch-file that the SQL Server account has access to. It seems counter-intuitive at first but I’ve seen this…

Read More

Cost Threshold for Parallelism and MAXDOP

There are a lot of “most overlooked” configuration settings in SQL Server, but I’m going to cover these two alone since they are quite closely related: Cost Threshold for Parallelism and Max Degree of Parallelism. What’s all this about? First let’s discuss Degree of Parallelism in its most simple form. When given a task to…

Read More