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 ArticleUsing Pester with dbatools Test-DbaLastBackup
In previous posts I have shown how to use Test-DbaLastBackup from dbatools and how you can make use of the results. Today we will look at using Pester with the results Pester provides a framework for...
View ArticleTest your Sqlserver backups on Linux with PowerShell and dbatools
I have written about Test-DbaLastBackup in posts here, here and here. They have been Windows only posts. With SQL Server vNext CTP 1.4 now available and providing SQL Agent capability on Linux, I wrote...
View ArticleGetting SQL Server File Sizes and Space Used with dbatools
I read a great blog post about answering the question how big is the database using T-SQL on SQL Buffet and wondered how much I could do with the dbatools module The dbatools module (for those that...
View ArticleTest the SQL Server database collation with PowerShell and dbatools
If your server collation is different to your database collation then you may find that you get an error similar to this Cannot resolve the collation conflict between “SQL_Latin1_General_CP1_CI_AS” and...
View ArticleGetting SQLServers Last Known Good DBCC Checkdb with PowerShell and dbatools
As good SQL Server DBA’s we want to ensure that our databases are regularly checked for consistency by running DBCC CheckDB. This will be frequently scheduled using an Agent Job or by using Ola...
View ArticleUsing 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 the Identity Column usage in SQL Server with PowerShell and dbatools
SQL Server uses identity columns to auto generate values, normally keys. When you create an identity column, it has a data type and that data type has a maximum number of values. BigInt...
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 Article#tsql2sday #130 – Automate your stress away – Getting more SSIS Agent Job...
Automation T-SQL Tuesday was started by Adam Machanic (blog|twitter) is hosted by a different person each month. The host selects the theme, and then the blogging begins. worldwide, on the second...
View Article