All tags
Posts tagged with "sql-server"
How to Deploy a SQL Server Availability Group for High Availability
A walkthrough for building a two-node SQL Server 2025 Availability Group with automatic failover, from standing up the AD forest to proving failover works.
sql-serverpowershell
Cannot connect to WMI provider in SQL Server Configuration Manager
How to fix the 'Cannot connect to WMI provider' error in SQL Server Configuration Manager by recompiling the MOF file with mofcomp.
sql-serverwindows
How To Split a SQL Server Backup File
Learn three ways to split a large SQL Server backup file for migration: native backup striping, PowerShell, and 7-Zip.
sql-serverpowershell
Understanding SQL Server Deadlocks Through the Prisoner's Dilemma
Your queries are prisoners. They're both holding what the other needs, and neither will let go.
sql-server
How to Migrate Data Using bcp
Step-by-step guide to bulk copying a date-filtered SQL Server table to another server using bcp format files and native mode.
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
Install sp_WhoIsActive across your SQL Server instances with a single dbatools command instead of running the script by hand.
sql-serverpowershell
Installing dbatools
A quick reference for installing the dbatools PowerShell module, covering the PowerShell Gallery install and offline options.
sql-serverpowershell
The Monty Hall Problem That Made Me a Better DBA
What the Monty Hall problem taught me about questioning assumptions, conditional probability, and diagnosing SQL Server performance.
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 autogrowth across every database with one script, and see why consistent filegrowth controls VLF fragmentation and performance.
sql-server
How to Safely Shrink a SQL Server Transaction Log File
Shrink a SQL Server transaction log with DBCC SHRINKFILE, understand the risks, and apply log management practices that prevent regrowth.
sql-server
Migrating Your SSRS ReportServer Database
Migrate an SSRS ReportServer database by backup and restore, covering encryption keys, logins, service accounts, and portal validation.
sql-serverssrs
How to Install SQL Server 2022 on MacOS
SQL Server does not run natively on macOS, but Docker makes it straightforward. Here is how to get an instance running on a Mac.
sql-serverdockerlinux
How to Analyze Wait Stats in SQL Server 2022
Categorize SQL Server 2022 wait stats into actionable groups with sys.dm_os_wait_stats and GROUPING SETS to find bottlenecks fast.
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
Split a large .bak file, benchmark Robocopy multithreading in PowerShell, run parallel copies, and reassemble the backup on the far end.
powershellsql-server
Querying Dates in SQL Server for Performance
Six date-filtering patterns benchmarked, showing how non-sargable expressions force scans and inflate logical reads, plus what to use instead.
t-sqlsql-server
Using PowerShell to Automate Glenn Berry's SQL DMV Queries
A dbatools and ImportExcel script that runs Glenn Berry's diagnostic DMV queries and compiles the results into one Excel workbook.
powershellsql-server
Identifying and Removing Duplicate Indexes in SQL Server
Query catalog views with a CTE over index key and included columns to find exact duplicates, then generate DROP statements to reclaim space.
sql-server
How to Improve SQL Server Performance by Avoiding Key Lookups
Use SET STATISTICS IO and execution plans to spot key lookups, then build covering indexes with INCLUDE to cut the extra logical reads.
sql-server
How to Download and Install the Latest Cumulative Update for SQL Server
Locate the newest cumulative update for your SQL Server version, prepare backups and downtime, and apply the CU safely to your instances.
sql-server
How to Download and Install Microsoft SQL Server 2022
Download the official SQL Server 2022 installer, choose between Developer and Express editions, and run the Basic or Custom setup wizard.
sql-server
How to Download and Install SQL Server Management Studio (SSMS)
Find the latest SSMS installer, run it as administrator, and know what to expect from the wizard so you can start managing instances.
sql-serverssms
Resolving SQL Server Instance and Database Collation Discrepancies: Step-by-Step Guide
Script out configs, logins, and jobs, rebuild system databases with setup.exe to fix a collation mismatch, then restore everything after.
sql-server