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

Image may be NSFW.
Clik here to view.

Enable CLR with Powershell

I had an email last night from someone who attended my PowerShell Box of Tricks session at SQL Saturday Exeter He was getting an error whilst trying to set CLR Enabled during an automatic install and...

View Article


Image may be NSFW.
Clik here to view.

Number of VLFs and Autogrowth Settings Colour Coded to Excel with PowerShell

So you have read up on VLFs No doubt you will have read this post by Kimberly Tripp and this one and maybe this one too and you want to identify the databases in your environment which have a large...

View Article


Image may be NSFW.
Clik here to view.

Changing Delay Between Responses for SQL Alerts with Powershell

So you have read that you should have alerts for severity levels 16 to 24 and 823,824 and 825 on SQLSkills.com or maybe you have used sp_blitz and received the Blitz Result: No SQL Server Agent Alerts...

View Article

Image may be NSFW.
Clik here to view.

Scheduling Ola Hallengrens Maintenance Solution Default Jobs with Powershell

If you are a SQL Server DBA you should know about Ola Hallengren and will probably have investigated his Maintenance Solution. If you haven’t please start here https://ola.hallengren.com/ You can also...

View Article

Image may be NSFW.
Clik here to view.

Populating My DBA Database for Power Bi with PowerShell – Server Info

Following my last 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. They are the secondary part to my...

View Article


Image may be NSFW.
Clik here to view.

Populating My DBA Database for Power Bi with PowerShell – SQL Info

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

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

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 all 17 articles
Browse latest View live