Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blog/assets/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"baseUrl": ".",
"paths": {
"*": [
"../../../../home/node/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!cai!jimmy/hugo-theme-stack/v3@v3.29.0/assets/*"
"../../../../../../../tmp/hugo_cache_runner/modules/filecache/modules/pkg/mod/github.com/!cai!jimmy/hugo-theme-stack/v3@v3.29.0/assets/*"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tags:

Folks, there is something fantastic coming from the creators of dbatools!

Chrissy LeMaire ([blog](https://blog.netnerds.net/)|[twitter](https://twitter.com/cl)) and Rob Sewell ([blog](https://sqldbawithabeard.com/)|[twitter](https://twitter.com/sqldbawithbeard)) just announced something big at SQLBits 2018, a new PowerShell module that combines [dbatools](https://dbatools.io/) with [Pester](https://github.com/pester/Pester) to ensure your environment is "as expected". I've been lucky enough to get to know both Chrissy and Rob by contributing to dbatools and when they introduced me to this new module I instantly saw a lot of potential.
Chrissy LeMaire ([blog](https://blog.netnerds.net/)) and Rob Sewell ([blog](https://sqldbawithabeard.com/)) just announced something big at SQLBits 2018, a new PowerShell module that combines [dbatools](https://dbatools.io/) with [Pester](https://github.com/pester/Pester) to ensure your environment is "as expected". I've been lucky enough to get to know both Chrissy and Rob by contributing to dbatools and when they introduced me to this new module I instantly saw a lot of potential.

I'm going to start off with just a small way to gain some value from dbachecks, ensuring your backups are completing with the frequency you expect.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ Well tonight marks three weeks since I gave my first user group presentation and

TL;DR I didn’t die, the SQL Server community is fantastic and I have amazing supportive friends.

{{< tweet user="Pittfurg" id="1004125722082934784" >}}

## Why Present?

The answer to this is twofold. Firstly this year I’ve challenged myself to get more involved in the SQL Server community. For several years now I’ve attended user group meetings, SQL Saturday’s and even made it to the PASS Summit a couple of times, but I’ve never contributed anything. It’s been all take.   Last year I got involved with dbatools and that started my quest to return the favour.  I’m still currently wrestling with the ideas of “who wants to listen to what I have to say” and “do I really have anything to contribute anyway,” but I’m doing my best to keep one foot in front of the other and see what happens.
Expand All @@ -31,7 +29,7 @@ The culmination of both the issue at work and working on dbatools commands for c

## Improvements

Overall I think the presentation went well, I delivered most of what I had planned on saying and my demo’s did a decent job of explaining the process for deciding what to compress and then applying compression through T-SQL, SSMS and PowerShell.  I was lucky to have some great friends in the audience ([Andrew](https://twitter.com/awickham), [Drew](https://twitter.com/Pittfurg) and [Erin](https://twitter.com/erinstellato)) who asked great questions which helped me to drive home certain points.
Overall I think the presentation went well, I delivered most of what I had planned on saying and my demo’s did a decent job of explaining the process for deciding what to compress and then applying compression through T-SQL, SSMS and PowerShell.  I was lucky to have some great friends in the audience (Andrew, Drew and Erin) who asked great questions which helped me to drive home certain points.

My timing was definitely a bit off. I’d prepared for what I thought would be 45-60 minutes of content and it was a bit shorter than that.  I plan on adding some additional content and delivering slightly slower the next time I give this talk to fix this problem.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tags:

I came across a situation this week where I wanted to add the option of running an existing script,  for a specific server/database combination.  The script currently has no parameters and runs against all servers in the environment from a scheduled task.  I wanted to make sure that behaviour didn’t change. The other requirement was that if I specified Server, Database should be a mandatory parameter and vice versa.

The final solution was to add the two parameters to a parameter set and make them both mandatory.  I also had to add a different DefaultParameterSet (thanks to [Andrew](http://twitter.com/awickham) for this idea), otherwise it defaulted to the defined parameter set, meaning the script always required both Server and Database parameters.
The final solution was to add the two parameters to a parameter set and make them both mandatory.  I also had to add a different DefaultParameterSet (thanks to Andrew for this idea), otherwise it defaulted to the defined parameter set, meaning the script always required both Server and Database parameters.

```PowerShell
[CmdletBinding(DefaultParameterSetName="Normal")]
Expand Down
2 changes: 1 addition & 1 deletion blog/content/post/2018/t-sql-tuesday-101/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ The final command for my top five takes an object in PowerShell and uses SQL bul
$results | Write-DbaDataTable -SqlInstance serverName -Database databaseName -Table tableName -AutoCreateTable
```

The Second reason dbatools is my favourite tool is all the other things I’ve gained and learnt from this module.  It’s been almost one year since my first pull request to dbatools, and at that point I had a decent handle on PowerShell but git was a foreign language. Guided by Chrissy LeMaire ([t](http://twitter.com/cl)) and some other folks from the [slack channel](http://dbatools.io/slack) I got the repo forked, created my own branch and then submitted a PR to get my contributions merged in.  Since then I’ve contributed multiple more PRs, everything from small fixes to the command based help, to writing a brand new command (Get-DbaDbCompression will be released soon!).
The Second reason dbatools is my favourite tool is all the other things I’ve gained and learnt from this module.  It’s been almost one year since my first pull request to dbatools, and at that point I had a decent handle on PowerShell but git was a foreign language. Guided by Chrissy LeMaire and some other folks from the [slack channel](http://dbatools.io/slack) I got the repo forked, created my own branch and then submitted a PR to get my contributions merged in.  Since then I’ve contributed multiple more PRs, everything from small fixes to the command based help, to writing a brand new command (Get-DbaDbCompression will be released soon!).

This tool not only gives you hundreds of commands to make your job easier, it encourages you to branch out and get involved in a truly special community. You will meet some brilliant people to bounce ideas off, learn new skills like github, integration tests or even continuous integration and development, all while giving back to the amazing community that surrounds the SQL Server ecosystem.  This blog is the start of my attempt to give back while furthering my understanding of certain topics. In June I’ll be stepping even further outside of my comfort zone by presenting at my local user group on data compression, and of course that’ll feature some dbatools related demos.
2 changes: 1 addition & 1 deletion blog/content/post/2018/t-sql-tuesday-102/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ categories:
height="300px"
>}}

First of all thanks to Riley Major ([b](https://scribnasium.com)|[t](https://twitter.com/RileyMajor)) for hosting this months T-SQL Tuesday.  This is a great topic for me as I have mentioned before my goal this year is to work on getting my blog going and starting to give back to this amazing community. I am always impressed by the content people produce and share, whether it be blog posts, presentations or just snippets on Twitter and I have learnt so much in my career so far from these sources.  Honestly I often feel like I don't have anything worth sharing and that what I know is obvious and everyone would know it.  Then I think back to that first Ohio North SQL Server User Group presentation I went to where Allen White ([b](http://dataperfpro.com/blog/)|[t](https://twitter.com/SQLRunr)) gave his now famous introduction, everyone has something to teach, so here goes.
First of all thanks to Riley Major ([b](https://scribnasium.com)) for hosting this months T-SQL Tuesday.  This is a great topic for me as I have mentioned before my goal this year is to work on getting my blog going and starting to give back to this amazing community. I am always impressed by the content people produce and share, whether it be blog posts, presentations or just online snippets and I have learnt so much in my career so far from these sources.  Honestly I often feel like I don't have anything worth sharing and that what I know is obvious and everyone would know it.  Then I think back to that first Ohio North SQL Server User Group presentation I went to where Allen White ([b](http://dataperfpro.com/blog/)) gave his now famous introduction, everyone has something to teach, so here goes.

I am all about goals and since we're already almost six months into 2018 I'm going to set some goals down on paper that will force me out of my comfort zone. I have been working towards these haphazardly so far, so I hope that writing these out will hold me accountable.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ tags:
height="300px"
>}}

As soon as I saw Bert Wagner ([t](https://twitter.com/bertwagner)|[b](https://bertwagner.com/)) post his T-SQL Tuesday topic last week I knew this was going to be a great one. I’m really looking forward to reading about everyone’s favourite code snippets so thanks Bert for hosting and choosing a fantastic subject!
As soon as I saw Bert Wagner ([b](https://bertwagner.com/)) post his T-SQL Tuesday topic last week I knew this was going to be a great one. I’m really looking forward to reading about everyone’s favourite code snippets so thanks Bert for hosting and choosing a fantastic subject!

A lot of the code I can't live without is either downloaded from the community (e.g. [sp_whoisactive](http://whoisactive.com/), [sp_indexinfo](http://karaszi.com/spindexinfo-enhanced-index-information-procedure), [sp_blitz](https://www.brentozar.com/blitz/)), or very specific to my workplace so I'm going to share some code that I've been meaning to blog about.

Expand Down
6 changes: 2 additions & 4 deletions blog/content/post/2018/t-sql-tuesday-108/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@ tags:
height="300px"
>}}

It’s T-SQL Tuesday time again, I have struggled in the last month or two to get anything up on my blog. Turns out weddings are pretty time consuming ?! Now that I’m happily married and home from an amazing [honeymoon in Hawaii](https://www.instagram.com/jpomfret/) it’s back to work on my blog and professional development.  Which makes this T-SQL Tuesday topic a perfect one to get back to, so thanks to Malathi Mahadeven ([B](https://curiousaboutdata.com)|[T](https://twitter.com/sqlmal)) for hosting this month.
It’s T-SQL Tuesday time again, I have struggled in the last month or two to get anything up on my blog. Turns out weddings are pretty time consuming ?! Now that I’m happily married and home from an amazing [honeymoon in Hawaii](https://www.instagram.com/jpomfret/) it’s back to work on my blog and professional development.  Which makes this T-SQL Tuesday topic a perfect one to get back to, so thanks to Malathi Mahadeven ([B](https://curiousaboutdata.com)) for hosting this month.

I feel like with last week’s PASS Summit (I didn’t attend this year so just watching from afar) it makes it even harder than usual to pick just one thing to learn.  There are so many things right now that I want to read about or fiddle with.

I’ve decided to pick a main subject, with an auxiliary bonus area attached - kind of cheating, I know.  I’ve been working on a project at work to automate our SQL Server builds with Powershell Desired State Configuration (DSC) so this will be my main goal. I already have a basic understanding of how DSC works and how to install SQL Server with it, I want to improve this knowledge to the point where I can present a session on it.

The side goal is docker/containers/kubernetes (maybe), I’m wondering if I could use these to test my DSC configurations, maybe not to install SQL Server (I have no idea though) but I imagine I could configure SQL Server running in a container.

I saw the tweet below last week from the beard, [Rob Sewell](https://twitter.com/sqldbawithbeard), that quoted [Bob Ward’s](https://twitter.com/bobwardms) thoughts on learning directions.  Feels like this is probably solid advice to justify my side goal.

{{< tweet user="sqldbawithbeard" id="1061032613979267072" >}}
I saw a post last week from the beard, Rob Sewell, that quoted Bob Ward’s thoughts on learning directions.  Feels like this is probably solid advice to justify my side goal.

## Learning Plan

Expand Down
2 changes: 1 addition & 1 deletion blog/content/post/2018/t-sql-tuesday-99/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tags:
height="300px"
>}}

First off, welcome to my first T-SQL Tuesday which seems like the perfect first blog post to introduce myself and my non-SQL Server life.  Starting this blog and becoming more involved with the SQL Server community (read speaking) is my goal for 2018 so here goes nothing. Thanks to [Aaron Bertrand](http://twitter.com/AaronBertrand) for hosting and picking a great topic.
First off, welcome to my first T-SQL Tuesday which seems like the perfect first blog post to introduce myself and my non-SQL Server life.  Starting this blog and becoming more involved with the SQL Server community (read speaking) is my goal for 2018 so here goes nothing. Thanks to Aaron Bertrand for hosting and picking a great topic.

I was born in Oxford, England before my family moved to the small market town of [Chippenham, Wiltshire](https://en.wikipedia.org/wiki/chippenham) where I was raised.  Leading to my main passion being proper football. We can argue about why this is the proper football in a later post perhaps (hint: you use your feet to kick a ball, no hands or egg-shaped objects here).

Expand Down
2 changes: 1 addition & 1 deletion blog/content/post/2019/dbatools-with-bert/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
draft: $true
---

This weekend, while I was having a great time at SQL Saturday Cleveland, I ran into my friend Bert ([b](https://bertwagner.com/)|[t](https://twitter.com/bertwagner)). He had some dbatools questions, which I was happy to help him with.  Now that dbatools has over 500 commands, it is both awesome and terrifying.  Bert wanted to know how to automate his database backups and then check he was using the correct recovery model.
This weekend, while I was having a great time at SQL Saturday Cleveland, I ran into my friend Bert ([b](https://bertwagner.com/)). He had some dbatools questions, which I was happy to help him with.  Now that dbatools has over 500 commands, it is both awesome and terrifying.  Bert wanted to know how to automate his database backups and then check he was using the correct recovery model.

{{< youtube id="9Zk3R7_Pr-U" title="Automating Database Maintenance with Jess Pomfret and dbatools" >}}

Expand Down
4 changes: 1 addition & 3 deletions blog/content/post/2019/multiple-triggers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ tags:

Well it has been a little quiet here recently. I just (or it’s been two weeks now) got back from a 2 week trip to England and France. It was an amazing trip and there are a few pictures on [Instagram](https://www.instagram.com/jpomfret/) if you are curious about what I got up to.

This is also going to be a quick post. I asked a question on Twitter last week about what happens when you have multiple triggers on a table. I got the answer (Thanks Aaron!), but figured this would be a good thing to demonstrate.

{{< tweet user="AaronBertrand" id="1121436026956861445" >}}
This is also going to be a quick post. I asked a question last week about what happens when you have multiple triggers on a table. I got the answer (Thanks Aaron!), but figured this would be a good thing to demonstrate.

I have also been playing with Azure Data Studio and the new notebook feature, so I answered this question with a step-by-step example in a notebook. I also found that you can easily store these notebooks on GitHub so I have uploaded it to my demos repo for you to follow along.

Expand Down
2 changes: 1 addition & 1 deletion blog/content/post/2019/t-sql-tuesday-111/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tags:
height="300px"
>}}

It’s T-SQL Tuesday again and thanks goes this week to our host Andy Leonard ([b](https://andyleonard.blog)|[t](https://twitter.com/AndyLeonard)). Andy has picked a great topic on why we do the things we do. With our hectic lives it’s good sometimes to sit down and have a think about something like this.  I’ve split my ‘what I do’ up into three buckets that, although are separate, have a lot of common ‘whys’.
It’s T-SQL Tuesday again and thanks goes this week to our host Andy Leonard ([b](https://andyleonard.blog)). Andy has picked a great topic on why we do the things we do. With our hectic lives it’s good sometimes to sit down and have a think about something like this.  I’ve split my ‘what I do’ up into three buckets that, although are separate, have a lot of common ‘whys’.

## Database Administrator

Expand Down
Loading