Author: Peter Whyte
-
PowerShell Script: List Files with Sizes and Dates
In this blog post, we’ll go through the steps for using a PowerShell script that lists files in a directory along with their sizes and creation dates. This…
-
How to View the Definition of a Stored Procedure
In this post, I'm sharing some SQL Scripts that will help you view the definition text of Stored Procedures and other objects in SQL Server.
-
SQL Script to Show Exclusive Locks on Tables
In this post I'm sharing a SQL script that will show exclusive locks for all tables in a database, with added info to help you understand what we're looking at.
-
Get-WUList Is Not Recognized: Install the PSWindowsUpdate Module
"Get-WUList is not recognized as the name of a cmdlet" means the PSWindowsUpdate module is not installed. Install-Module fixes it on Windows PowerShell 5.1, no PowerShell 7 upgrade needed.
-
SQL Server Performance Tuning: Index Fragmentation Scripts
In this post I'm sharing more scripts to help with SQL Server performance tuning. This time, we're looking at index and heap fragmentation which are useful for…
-
SQL to SQL: A Practical Guide from a DBA
If you're looking to connect, migrate, or convert between SQL databases, this post is aimed at you.
-
How to Check and Manage SQL Server Services
As a SQL Server DBA, it’s important that we have quick and efficient ways to check SQL Services. We need to ensure our SQL Services are always available, and…
-
Checking SQL Server Mirroring Health & Latency
In this blog post I'm sharing info on how to check the health and latency of your Database Mirroring in SQL Server.
-
SQL Script to Get AAG Latency
In this post, I’m sharing a script that I use frequently as a Production SQL DBA to check Always On Availability Group (AAG) latency.