Quantcast
Channel: SMO – SQL DBA with A Beard
Browsing latest articles
Browse All 17 View Live

Image may be NSFW.
Clik here to view.

Power Bi, PowerShell and SQL Agent Jobs

Continuing my series on using Power Bi with my DBA Database I am going to show in this post how I create the most useful daily report for DBAs – The SQL Agent Job report. You can get the scripts and...

View Article



Image may be NSFW.
Clik here to view.

Using PowerShell to set Extended Events Sessions to AutoStart

When you look after more than a few SQL Servers you will need to perform the same actions against a number of  them and that is where PowerShell will be of great benefit. Recently I needed to ensure...

View Article

Image may be NSFW.
Clik here to view.

DBA Database scripts are on Github

It started with a tweet from Dusty The second session I presented at the fantastic PowerShell Conference Europe was about using the DBA Database to automatically install DBA scripts like sp_Blitz,...

View Article

Image may be NSFW.
Clik here to view.

Converting SQL Agent Job Duration to TimeSpan using PowerShell

When you look in msdb for the SQL Agent Job duration you will find that it is an int. This is also the same when you look at Get-SQLAgentJobHistory from the sqlserver module. (You can get this by...

View Article

Image may be NSFW.
Clik here to view.

SQL VNext sp_configure on Windows and Linux with dbatools

This weekend I set up some SQL vNext virtual machines, two on Windows and one on Linux so that I could test some scenarios and build an availability group. IMPORTANT NOTE :- The names of dbatools...

View Article


Image may be NSFW.
Clik here to view.

Quickly Creating Test Users in SQL Server with PowerShell using the sqlserver...

One of the most visited posts on my blog is nearly two and half years old now – Add User to SQL Server Database Role with PowerShell and Quickly Creating Test Users. I thought it was time to update it...

View Article

Image may be NSFW.
Clik here to view.

VS Code PowerShell Snippets

Just a quick post, as much as a reminder for me as anything, but also useful to those that attended my sessions last week where I talked about snippets in PowerShell ISE Jeff Hicks wrote a post...

View Article

Image may be NSFW.
Clik here to view.

Adding a PowerShell Job Step to an existing SQL Agent Job Step with PowerShell

In my last post I showed how to add a T-SQL Job step to an existing SQL Agent Job. The process is exactly the same for a PowerShell job step. As before I gathered the required jobs using...

View Article


Image may be NSFW.
Clik here to view.

TSQL2sDay – Get-PostRoundup

First an apology, this round up is late! The reason for that is an error in the PowerShell testing module Pester (That’s not completely true as you shall see!!) I spoke in Stuttgart at the PowerShell...

View Article


Image may be NSFW.
Clik here to view.

Populating My DBA Database for Power Bi with PowerShell – Databases

Following my post about using Power Bi with my DBA Database I have been asked if I would share the PowerShell scripts which I use to populate my database. In this post I will show how to create the...

View Article
Browsing latest articles
Browse All 17 View Live




Latest Images