Creating SQL Server Database with PowerShell
This morning I have been setting up my Azure Servers in preparation for my presentation to the Cardiff SQL User Group this month. I used my scripts from My Post on Spinning Up Azure SQL Boxes to...
View ArticleList Databases (and Properties) on SQL Server with PowerShell
Another post in the PowerShell Box of Tricks series. Here is another script which I use to save me time and effort during my daily workload enabling me to spend more time on more important (to me)...
View ArticleChecking For A Database Backup with PowerShell
Todays PowerShell Box of Tricks Post is about backups I highly recommend you go and read bookmark and come straight back Stuart Moore’s series on Backups with Powershell The link takes you to the...
View ArticleShowing and Killing SQL Server Processes with PowerShell
Another post in the PowerShell Box of Tricks series. There are much better ways of doing this I admit but as you can do it with PowerShell I created a function to do it. Create a Server Object and...
View Article#TSQL2sDay Why My Head is Always in The Cloud
Todays post is my first for the TSQL2sDay series. For those not familiar this is rotating blog party that was started by Adam Machanic (@AdamMachanic | blog) back in 2009. If you want to catch up on...
View ArticleWhat Runs on the SQL Server when you run a PowerShell script?–Question from...
Last week I ran a PowerShell lab at SQL Relay in Cardiff. There are still a few places available for SQL Relay week 2. Take a look here for more details and follow the twitter hashtag #SQLRelay for up...
View ArticleStarting My Azure SQL Server VMs with PowerShell
The last post about Launching Azure VMs with PowerShell made someone ask me to explain how I start my Azure VMs normally so here goes. When I decide to write a blog post or develop and test a script...
View ArticleDropping All Tables From A SQL Database with PowerShell
This post could also have been titled confusion with foreach or For-EachObject The scenario – Having created a blank database a number of users and permissions for an external consultant to create a...
View ArticleHow I Check Hundreds of SQL Agent Jobs in 60 Seconds with Powershell
Checking that your Agent Jobs have completed successfully is a vital part of any DBA’s responsibility. It is essential to ensure that all of the hard work you have put into setting up the jobs can be...
View ArticleListing the SQL Server SysAdmins With PowerShell
A very short blog today just to pass on this little script. I was required to list all of the SysAdmins across a large estate. Obviously I turned to PowerShell :-) I iterated through my server list...
View ArticleA look at the SQL Assessment Intelligence Pack in Operational Insights
Operational Insights is a service that has been added in preview to Azure. It enables you to collect, combine, correlate and visualize all your machine data in one place. It can collect data from all...
View ArticleShow AutoGrowth Events with Powershell to CSV
This week I was reading Pinal Daves post about Autogrowth Events http://blog.sqlauthority.com/2015/02/03/sql-server-script-whenwho-did-auto-grow-for-the-database/ as it happened I had a requirement to...
View ArticleInstances and Ports with PowerShell
Just a quick post and a day late for #SQLNewBlogger There are some excellent posts on that hashtag and I recommend that you read them When you know a server name but not the name of the instances or...
View ArticleInstalling 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 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 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 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 Article