Using Pester with Get-DbaLastGoodCheckDb from dbatools
In my last post I showed Get-DbaLastGoodCheckDb from dbatools. This module is a community based project written by excellent, brilliant people in their own time and available to you free. To find out...
View ArticleTesting SQL Server Access to a share with PowerShell using dbatools
A good security practice is to backup our SQL Servers to a network share but not allow users to be able to browse the share. How can we ensure that our SQL Server has access or test it if it has been...
View ArticleExport SQL User Permissions to T-SQL script using PowerShell and dbatools
There are times when DBA’s are required to export database user permissions to a file. This may be for a number of reasons. Maybe for DR purposes, for auditing, for transfer to another database or...
View ArticleWhy VS Code Increases my Productivity
Last week I was showing a co-worker some PowerShell code and he asked what the editor was that I was using. Visual Studio Code I said. Why do you use that? What does it do? This is what I showed him...
View Articledbatools at #SQLSatDublin
This weekend SQL Saturday Dublin occurred. For those that don’t know SQL Saturdays are free conferences with local and international speakers providing great sessions in the Data Platform sphere....
View ArticlePowerShell Module for the SQL Server Diagnostics API – 1st Command...
I saw this blog post about the SQL Server Diagnostics add-on to SSMS and API and thought I would write some PowerShell to work with it as all of the examples use other languages. SQL ServerDignostics...
View ArticleCreating a PowerShell Module and TDD for Get-SQLDiagRecommendations
Yesterday I introduced the first command in the SQLDiagAPI module. A module to consume the SQL Diagnostics API. I have been asked a few times what the process is for creating a module, using Github and...
View ArticleUsing Get-SQLDiagFix to get information from the SQL Server Diagnostic API...
The SQL Server Diagnostics Preview was announced just over a week ago It includes an add-on for SQL Server Management Studio to enable you to analyse SQL Server memory dumps and view information on the...
View ArticleTSQL2sDay – 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 Articledbatools with SQL on Docker and running SQL queries
I had a question from my good friend Andrew Pruski dbafromthecold on twitter or SQL Container Man as I call him How do you guys run SQL Commands in dbatools I will answer that at the bottom of this...
View ArticleComparing Agent Jobs across Availability Group Replicas with PowerShell
On the plane home from PAS Summit I was sat next to someone who had also attended and when he saw on my laptop that I was part of the SQL Community we struck up a conversation. He asked me how he could...
View ArticleTSQL2sDay – Folks Who Have Made a Difference
This months TSQL2sDay is an absolute brilliant one hosted by Ewald Cress the opportunity to give a shout-out to people (well-known or otherwise) who have made a meaningful contribution to your life in...
View ArticlePester 4.2.0 has a Because…… because :-)
I was going through my demo for the South Coast User Group meeting tonight and decided to add some details about the Because parameter available in the Pester pre-release version 4.2.0. To install a...
View ArticleAnnouncing dbachecks – Configurable PowerShell Validation For Your SQL Instances
For the last couple of months members of the dbatools team have been working on a new PowerShell module called dbachecks. This open source PowerShell module will enable you to validate your SQL...
View Articledbachecks – Configuration Deep Dive
Today is the day that we have announced dbachecks a PowerShell module enabling you to validate your SQL Instances. You can read more about it here where you can learn how to install it and see some...
View ArticleCreating SQL Server Containers for versions 2012-2017
I am working on my dbatools and dbachecks presentations for SQL Saturday Finland, SQLDays, SQL Saturday Cork and SQLGrillen I want to show the two modules running against a number of SQL Versions so I...
View Articledbachecks – Save the results to a database for historical reporting
I gave a presentation at SQL Day in Poland last week on dbachecks and one of the questions I got asked was will you write a command to put the results of the checks into a database for historical...
View ArticleGathering all the Logs and Running the Availability Group Failover Detection...
30/11/2018 – Function has been updated to deal with named instances. Last week the Tiger Team released their Availability Group Failover Detection Utility which will provide root cause analysis on...
View ArticleRunning Windows and Linux SQL Containers together
Just for fun I decided to spend Christmas Eve getting Windows and Linux SQL containers running together. WARNING This is NOT a production ready solution, in fact I would not even recommend that you try...
View Article