All tags
Posts tagged with "sql-server"
Wide vs Narrow Table Design in SQL Server
A practical benchmark of month-as-columns vs month-as-rows using SQL Server IO, time, plans, and storage.
sql-server
How to Merge SQL Server Data Files
Taking a database with one MDF and several NDFs, and gradually moving all data back into a single data file using `EMPTYFILE`.
sql-server
Automating sp_WhoIsActive Installation
Use dbatools to install sp_WhoIsActive with a single script
sql-server powershell
Installing dbatools
Quick reference for installing dbatools with PowerShell
sql-server powershell
The Monty Hall Problem That Made Me a Better DBA
How Monty Hall helped me understand SQL Server’s bad plan choices.
sql-server
SELECT * in SQL Server: Payload and Throughput
A practical SQL Server benchmark showing how returning more columns changes payload size and affects throughput.
sql-server
How to Set SQL Server Autogrowth for All Databases (and Why You Should)
Standardize SQL Server autogrowth settings across all databases with a simple script. Learn why setting consistent filegrowth sizes helps control VLF fragmentation, improves performance, and avoids legacy misconfigurations.
sql-server
How to Safely Shrink a SQL Server Transaction Log File
Learn how to shrink a SQL Server transaction log file with DBCC SHRINKFILE, understand the risks, and discover best practices for log file management to maintain database health.
sql-server
Migrating Your SSRS ReportServer Database
Migrate your SSRS ReportServer database safely by backing up and restoring—covering encryption key export, login and service-account configuration, portal validation, and manual data-source reconfiguration.
sql-server ssrs
How to Install SQL Server 2022 on MacOS
A guide to running SQL Server 2022 on macOS using Docker.
sql-server docker linux
How to Analyze Wait Stats in SQL Server 2022
Learn how to categorize SQL Server 2022 wait statistics into actionable groups using sys.dm_os_wait_stats and GROUPING SETS to uncover hidden performance bottlenecks in minutes.
sql-server
How to Configure and Tune MAXDOP
A practical guide to selecting and configuring the Max Degree of Parallelism (MAXDOP) setting in SQL Server for optimal parallel query performance.
sql-server
Optimizing SQL Server Backup Transfers with Robocopy
Faced with unreliable VPN throughput, the author splits a large .bak file into parts, benchmarks Robocopy’s multithreading (/MT) settings in PowerShell, then runs parallel copy sessions and explains how to reassemble the chunks into a single backup file.
powershell sql-server
Querying Dates in SQL Server for Performance
By testing six different date-filtering patterns—using BETWEEN, >=/< with precise and simplified formats, and applying CONVERT to datetime columns—this post reveals how non-sargable expressions trigger scans and inflate logical reads, and recommends best practices for clean, efficient filters.
t-sql sql-server
Using PowerShell to Automate Glenn Berry's SQL DMV Queries
Leveraging the dbatools PowerShell module and ImportExcel, this post introduces a script that connects to a SQL Server instance, runs Glenn Berry’s diagnostic DMV queries, exports results to CSV, and compiles them into a single Excel workbook for streamlined performance analysis.
powershell sql-server
Identifying and Removing Duplicate Indexes in SQL Server
This deep-dive shows you how to query system catalog views with a CTE that lists index key and included columns, detect exact duplicates across indexes, and generate DROP statements so you can reclaim storage and speed up write operations.
sql-server
How to Improve SQL Server Performance by Avoiding Key Lookups
Exploring the impact of key lookups on logical reads, this post demonstrates how to use SET STATISTICS IO and execution plans to identify missing columns in nonclustered indexes and then create covering indexes with INCLUDE clauses to eliminate extra I/O.
sql-server
How to Download and Install the Latest Cumulative Update for SQL Server
This article explains how to locate and download the most recent cumulative update (CU) for your SQL Server version, prepare for maintenance with backups and downtime, and run the update installer to apply the CU safely to your instances.
sql-server
How to Download and Install Microsoft SQL Server 2022
This guide walks you through obtaining the official SQL Server 2022 installer, choosing between Developer and Express editions, and completing a straightforward installation using the Basic or Custom options in the setup wizard.
sql-server
How to Download and Install SQL Server Management Studio (SSMS)
In this post, you’ll learn where to find the latest SSMS installer on Microsoft’s site, how to run it as administrator, and what to expect during the installation wizard so you can start managing your SQL Server instances with the official GUI tool.
sql-server ssms
Resolving SQL Server Instance and Database Collation Discrepancies: Step-by-Step Guide
When migrating databases with mismatched collations, this walkthrough covers scripting out server configurations, logins, jobs, and master objects; using setup.exe to rebuild system databases with the correct collation; and restoring all settings and user databases afterward.
sql-server