Category: Installation & Configuration
-
DBA Scripts: Pre-Install and Post-Install Checks for SQL Server
You are standing up a new SQL Server instance, or you have inherited one and want to know what state it is really in. These 2 read-only PowerShell scripts sit either side of setup: pre-install-check.ps1 tells you whether the machine is ready before you run setup.exe, and post-install-validation.ps1 tells you what the installer left at…
Written by
-
DBA Scripts: Get Trace Flags and Resource Governor Configuration
What a Previous DBA Might Have Set and Never Told You Trace flags and Resource Governor are both instance-wide behavior changes that don’t show up in sp_configure at a glance, don’t appear in the database, and can sit silently in place for years, inherited from whoever configured the server before you. Both can also be…
Written by
-
DBA Scripts: Get CPU Topology and OS Configuration Checks
What CPU and OS Settings Are Actually Doing to SQL Server OS and Hardware Info tells you what hardware exists. These two scripts go one level deeper: how SQL Server is actually scheduling work across that hardware, and whether a handful of OS-level settings invisible from Task Manager, Lock Pages in Memory, NUMA alignment, Instant…
Written by
-
DBA Scripts: Get Patch Level
Building a Patch Compliance Inventory Across an Estate Version and Edition answers “what is this one instance running” as a quick single-server snapshot. This script answers a related but different question: run it across every server you manage and you get a patch compliance inventory, ready to compare against what’s actually current, one row per…
Written by
-
DBA Scripts: Patch SQL Server and Check Status
Keep SQL Server Patched: Check It, Patch It, Prove It Patching is the job that never finishes: a new Cumulative Update lands, every instance needs it, and “are we current?” needs an answer on demand. This post is that whole loop, run for real on my own lab server, from clone to current build. The…
Written by
-
DBA Scripts: Uninstall SSMS via PowerShell
When the Uninstaller Fails SSMS has to come off a machine, and Settings → Apps failed, left it half removed, or is no use across a fleet. This script finds every SSMS install in the registry and removes it. When one method fails, it tries the next. To do it by hand instead, see the…
Written by
-
DBA Scripts: Install and Update SSMS via PowerShell
The Scripted Version of Installing SSMS SSMS is behind or missing on a box and you want it current without clicking through the installer: this script installs or updates it silently, works out what is already there, and puts ssms on PATH when it is done. For a one-off install on your own workstation, Install…
Written by
-
DBA Scripts: Uninstall SQL Server
Removing an Instance Cleanly, and Knowing What Happened Afterward uninstall-sql.ps1 detects installed instances, confirms the target explicitly, and runs setup.exe /ACTION=Uninstall, with an option to remove data directories afterward. generate-install-report.ps1 reads back through every install, configure, and patch log this toolkit has ever written for an instance and produces a readable timeline, useful both before…
Written by
-
DBA Scripts: Install and Configure SQL Server
Unattended Install, Then Sensible Defaults Applied on Top Two scripts covering the doing half of a SQL Server install: install-sql.ps1 drives setup.exe with validated, logged parameters instead of clicking through the GUI, and configure-sql.ps1 applies the recommended sp_configure settings afterward with a before/after comparison. Every change from both scripts is logged. Why a Generated, Logged…
Written by
-
DBA Scripts: Get OS and Hardware Info
What Is This Server Actually Running On Before you can reason about performance, capacity, or whether a setting makes sense, you need the basics: how much CPU and memory the box actually has, what OS it’s running, and how long SQL Server has been up. It’s a small set of facts, but it’s the context…
Written by
- Tune a Slow Query With Copilot in SSMS
- xp_readerrorlog: Read the SQL Server Error Log with T-SQL
- Cannot Drop Database Because It Is Currently in Use (Error 3702)
- Could Not Drop Login Because the User Is Currently Logged In (Error 15434)
- Set a Maximum Database File Size in SQL Server (MAXSIZE)
- SQL Server Activity Monitor in SSMS (and the Performance Dashboard)
- Backups & Recovery (18)
- DBA Scripts (154)
- High Availability (HA) (13)
- Installation & Configuration (60)
- Maintenance (25)
- Migration & Upgrades (14)
- Monitoring (10)
- Performance Tuning (38)
- Security (Encryption & Permissions) (25)
- Storage & Capacity (18)
- T-SQL Fundamentals (17)
- Troubleshooting (108)
- Wait Types (236)