Time to read: ~4 minutes
Update: 2017-09-20 Thanks to Rick Fraser for pointing out I showed a $ServerConnection but hadn’t defined it in the function or separately or at all! Thanks Rick!
Ah T-SQL Tuesday, is it that time again? And the 94th one at that! Wow!