Quantcast
Channel: automation – SQL DBA with A Beard
Browsing index pages (50 articles)
↧

Image may be NSFW.
Clik here to view.

Creating Azure SQL Database AAD Contained Database Users with an SPN using...

Following on from my posts about using Secret Management Good bye Import-CliXml and running programmes as a different user, I have another use case. After creating Azure SQL Databases in an Elastic...

View Article


Image may be NSFW.
Clik here to view.

Notifying a Teams Channel of a SQL Agent Job result

Following on from yesterdays post about creating an overview of SQL Agent Job Results and sending it to a Teams channel, I was given another challenge Can you write a job step that I can add to SQL...

View Article


Image may be NSFW.
Clik here to view.

Sending a SQL Agent Job results overview to a Microsoft Teams Channel

Microsoft Teams is fantastic for collaboration. It enables groups of people, teams if you like to be able to communicate, collaborate on documents, hold meetings and much much more. SQL Agent Job...

View Article

Image may be NSFW.
Clik here to view.

Running Jupyter Notebooks as Agent Jobs

Azure Data Studio is a great tool for connecting with your data platform whether it is in Azure or on your hardware. Jupyter Notebooks are fantastic, you can have words, pictures, code and code...

View Article

Image may be NSFW.
Clik here to view.

Using Azure DevOps Build Pipeline Templates with Terraform to build an AKS...

In the last few posts I have moved from building an Azure SQL DB with Terraform using VS Code to automating the build process for the Azure SQL DB using Azure DevOps Build Pipelines to using Task...

View Article


Image may be NSFW.
Clik here to view.

Using the same Azure DevOps build steps for Terraform with different...

In my last post I showed how to build an Azure DevOps Pipeline for a Terraform build of an Azure SQLDB. This will take the terraform code and build the required infrastructure. The plan all along has...

View Article

Image may be NSFW.
Clik here to view.

Getting SQL Services, Starting, Stopping and Restarting them with dbatools

There was a question in the #dbatools slack channel  Getting dbatools dbatools enables you to administer SQL Server with PowerShell. To get it simply open PowerShell runInstall-Module dbatoolsYou can...

View Article

Image may be NSFW.
Clik here to view.

Deploying To a Power Bi Report Server with PowerShell

Just a quick post to share some code that I used to solve a problem I had recently. I needed to automate the deployment of some Power Bi reports to a Power Bi Report Server PBRS using TFS. I had some...

View Article


Image may be NSFW.
Clik here to view.

Using the PowerShell AST to find a ForEach Method

In dbachecks we enable people to see what checks are available by running Get-DbcCheck. This gives a number of properties including the ‘type’ of check. This refers to the configuration item or...

View Article


Image may be NSFW.
Clik here to view.

Write Your first Pester Test Today

I was in Glasgow this Friday enjoying the fantastic hospitality of the Glasgow SQL User Group @SQLGlasgow and presenting sessions with Andre Kamman, William Durkin and Chrissy LeMaire I presented...

View Article

Image may be NSFW.
Clik here to view.

Using Plaster To Create a New PowerShell Module

Chrissy, CK and I presented a pre-con at PASS Summit in Seattle last week Tracey Boggiano T | B came along to our pre-con and afterwards we were talking about creating PowerShell modules. In her blog...

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.

Testing 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 Article


Image may be NSFW.
Clik here to view.

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 Article

Image may be NSFW.
Clik here to view.

Getting 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 Article


Image may be NSFW.
Clik here to view.

Test 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 Article

Image may be NSFW.
Clik here to view.

Getting 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 Article


Image may be NSFW.
Clik here to view.

Using 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 Article

Image may be NSFW.
Clik here to view.

Taking dbatools Test-DbaLastBackup a little further

In a previous post I showed how easy it is to test your backups using Test-DbaLastBackup Today I thought I would take it a little further and show you how PowerShell can be used to transmit or store...

View Article

Image may be NSFW.
Clik here to view.

Testing Your SQL Server Backups the Easy Way with PowerShell & dbatools

In a previous post I wrote about how easy it was to restore a whole SQL Servers user databases from a  directory using the dbatools module. Maybe it is a good idea to look at for disaster recovery...

View Article
Browsing index pages (50 articles)


Latest Images