Log Shipping With dbatools - Part 1: Setup Log Shipping

This post is the first one of a series of four describing all the different commands. We’ll discuss the commands to set up log shipping with dbatools, how to check the status, to check for errors, and to recover in case of an emergency.

What is log shipping

Before we go into the why I want you to know what log shipping is. Log shipping dates back to the early versions of SQL Server. The first article that I could find dates back to the year 2000 and explains how to setup log shipping with SQL Server version 7.

Read more →

Create Your Own PowerShell Profile

Being a fan of automation I like to create my own PowerShell profile. It enables me to load various settings that normally take more time.

The PowerShell profile resides in your home directory and if you work in an AD environment with roaming data you’ll have the same profile on every computer. PowerShell profiles are not new and dates back to PowerShell v2.0.

Others people have written about this subject before but I wanted to share my take on it.

Read more →

Why I love dbatools

I’ve been working on the dbatools project for a while now and I felt like telling you why I love this project.

A little background about me, I’m not a full-time programmer. I learned to program with Java years ago and did little personal projects with PHP, C#, and a couple of other languages. I started PowerShell about 7 years ago and thought I was capable of delivering solid code. That all changed with dbatools.

Read more →

Data modeling gone wrong

sql tuesday

For the coming T-SQL Tuesday I want to share some of my experiences with a database with data modeling gone wrong where I was the DBA.

To know where all the bad data modeling came from you have to know the history of the piece of software. About 10 years ago there was hype around saving data in XML files. XML was supposed to be a good solution to save data in a formatted way without the hassle of using databases or formatted text files.

Read more →