Installing and upgrading default scripts automation – part one – Introduction
First I must say thank you to all of the wonderful people who have put time and effort into providing free tools and scripts to enable not only myself but all SQL DBAs to ease their work. For this...
View ArticleSetting Up and Using Azure VM SQL Automated Backup (and Restore)
This weekend I was creating some Azure VMs to test and was required to use the GUI for some screenshots. I have always used my Powershell scripts described here to create my test systems and with a new...
View ArticleUsing Power Bi with my DBA Database
Every good DBA should have a DBA database. A place to store information about all of their instances and databases. I have an InstanceList table which looks like this CREATE TABLE [dbo].[InstanceList](...
View ArticlePopulating 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 ArticlePopulating 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 ArticleEnterprise Strategies – A #TSQL2sDay post
This months TSQL2sDay blog post party is hosted by Jen McCown and is about Enterprise Strategy. Adam Mechanic started TSQL Tuesdays over 5 years ago and you will find many brilliant posts under that...
View ArticlePopulating 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 ArticlePower 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 ArticleBacking up to URL container name – case is important
If you use SQL Backup to URL to backup your databases to Azure blob storage remember that for the container name case is important So BACKUP LOG [DatabaseName] TO URL =...
View ArticleDBA 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 ArticleSome Pester Tests for SQL Defaults
When I was at PowerShell Conference EU in Hannover last month (The videos are available now – click here and the slides and code here) I found out about Irwin Strachans Active Directory Operations Test...
View ArticlePowerShell CMDLets added for SQL2016 Always Encrypted
The post on the SQLServer blog at TechNet by the SQL Server Tools Team today made me jump out of my seat. The July update for SSMS includes the first substantial improvement in SQL PowerShell in many...
View ArticleUsing the new SQLServer Powershell module to get SQL Agent Job Information
So with the July Release of SSMS everything changed for using PowerShell with SQL. You can read the details here As I mentioned in my previous post the name of the module has changed to sqlserver This...
View ArticleRemove-SQLDatabaseSafely My First Contribution to DBATools
What is DBA Tools? A collection of modules for SQL Server DBAs. It initially started out as ‘sqlmigration’, but has now grown into a collection of various commands that help automate DBA tasks and...
View ArticlePowerShell, Pester and Ola Hallengrens Maintenance Solution
If you are a SQL DBA you will have heard of Ola Hallengrens Maintenance solution If you haven’t go and click the link and look at the easiest way to ensure that all of your essential database...
View ArticleAltering a Job Step on Hundreds of SQL Servers with PowerShell
I flew to Utrecht last week to present with Chrissy LeMaire and Sander Stad to present to the joint Dutch SQL and PowerShell User Groups. Whilst I was sat at the airport I got a phone call from my...
View ArticleAdding a T-SQL Job Step to a SQL Agent Job with PowerShell
In my last post, I explained how to alter an existing job step across many servers. I also had cause to add a T-SQL Job step to a large number of jobs as well. This is how I did it. As before I...
View ArticleSQL 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 ArticleQuickly 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 ArticleVS 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