Free SQL Server Health Check with dbatools

Roll your own SQL Server Health Check with dbatools

After a longer break than expected, I am back to the dbatools for SQL Server DBAs blog series, and this one is a monster! In fact, this project is so big that I think it will be better to release it incrementally. This will allow you clone the repository, test and modify it in your … Read more

dbatools Command Failing:  “The Parameter is Incorrect”

SQL Server case study of the week

This week’s case of the week post comes from Jack Corbett. Quick Summary  When attempting to use Copy-DBACredential in dbatools, I received the error “The parameter is incorrect,” yet other commands connecting to the same servers worked.  Context  I was working with a client to do an upgrade/migration from SQL Server 2016 to SQL Server … Read more

PowerShell Splatting 101: Clean Up Your Commands

Splatting 101

Have you ever written a PowerShell command so long that it stretched across the screen? Or had to update a script and hunt through a long parameter list to change a single value? Splatting solves that problem by letting you pass multiple parameters to a command using a single variable. What Is Splatting? Splatting allows … Read more

Deploy SQL Server With This One Script (dbatools)

deploy sql server with one script

In this and the next two blog posts I will be bringing diverse dbatools commands into scripts that can handle a complete deployment, do a checkup of major health and configuration metrics, and do a true up of a pre-existing instance. This post will cover the complete deployment, which if you have been reading the … Read more

Save Time On SQL Server Installs With Install-DbaInstance (dbatoools)

save time on SQL Server installs with Install-DbaInstance

As DBAs we install SQL Server for various reasons regularly. If you could save time for each installation for more critical tasks, would you? In this blog post, we will audit the dbatools command Install-Dbainstance. I will test, review, and evaluate the script based on a series of identical steps. Our goal is to provide … Read more

How to Quickly Load CSV Files Into SQL Server Using Import-DbaCsv (dbatools)

Import-DbaCsv

Most businesses are rotten with Excel sheets and CSV exports from various tools and as my mentor puts it “Excel is the world’s database”. The dbatools command Import-DbaCsv enables the quick load of CSV tables into SQL Server, which then opens up the world of fast transformation and use in other tools such as PowerBI, … Read more

How to Automatically Install SQL Server Service Packs and Cumulative Updates with Update-DbaInstance (dbatools)

Update DbaInstance

Keeping your SQL Server instance up to date with the latest service packs and cumulative updates is one of the key components of SQL Server security. In this blog post, we will audit the dbatools command Update-DbaInstance, which can save you hours every month and help keep your environment more secure. I will test, review, … Read more