All tags
Posts tagged with "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.
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.
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.
How to Install SQL Server 2022 on MacOS
A guide to running SQL Server 2022 on macOS using Docker.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.