SQL Browser, what is it good for? Absolutely something!
Posted on March 8, 2017
| 1192 words
Another great teaching opportunity landed in my lap this week. I got an email from a coworker looking for some help troubleshooting a SQL connection issue. He had an application server that could not connect to one of our SQL Servers.
We have a fairly complex and secure network environment. Multiple networks across multiple data centers with multiple firewalls in between. Because of this, one of the first things I typically look at is connectivity between application and database servers.
[Read More]How the SQL Agent Job schedule_uid broke my heart, and my jobs!
Posted on February 3, 2017
| 593 words
This is something that has caused me some grief in my life as a DBA. I hesitate to call it a bug, but this little gottcha resurfaced in a change that was submitted by a teammate just today. So I wanted to share while it was fresh in my mind.
When you script out a SQL Agent Job you’ll notice that the job schedule will have a schedule_uid parameter (providing your job has a schedule).
[Read More]T-SQL Tuesday 85 - Backup & Recovery
Posted on December 13, 2016
| 0 words
T-SQL Tuesday 84 - Growing New Speakers
Posted on November 8, 2016
| 0 words
Ponderings of PASS Summit 2016
Posted on November 3, 2016
| 476 words
Summit 2013 in Charlotte, NC was my first and I remember it well. I went with 4 other people from my company but I was pretty new to the SQL PASS community (otherwise known as #sqlfamily). As a matter of fact I didn’t even know what #sqlfamily was at this point. I went to all of the PASS sponsored events like the welcome reception, the vendor party and yes the NASCAR party (which being a NASCAR fan was awesome).
[Read More]Convert User Friendly Retention to DateTime value with PowerShell
Posted on October 25, 2016
| 509 words
I think the title is fairly descriptive so let me put a little context around it for you. In my SQL Server environment we backup our databases to local disk. Unfortunately we don’t have unlimited storage for backups, which means we have to delete the old backups on a regular basis. A very typical practice in the SQL DBA world.
I was writing a new cmdlet for dbatools.io (Remove-DbaBackup to be released in October) and needed to decide how I wanted users to provide the retention for their SQL backups.
[Read More]Who owns your availability groups?
Posted on October 20, 2016
| 586 words
Availability groups have owners, just like every other object in SQL Server. The owner sid is found in sys.availability_replicas. The script below will map those sids to an actual principal name, and display the owners for all AG’s on the replica where you run it. You can run this on both the PRIMARY and SECONDARY replicas, which we have discovered may or may not be consistent. Regardless, you should see an owner for every AG on your SQL Server.
[Read More]T-SQL Tuesday 83 - How are we still dealing with the same problems?
Posted on October 11, 2016
| 588 words
#TSQL2SDAY is a monthly blog party hosted by a different blogger each month. This blog party was started by Adam Machanic (blog|twitter). You can take part by posting your own participating post that fits the topic of the month and follows the requirements below. Additionally, if you are interested in hosting a future T-SQL Tuesday, contact Adam Machanic on his blog.
I think it can be cultural and can propagate from the senior level DBA’s right on down to the new hires.
[Read More]Speaking at SQL Saturday 513 in Albany, NY on July 30th - PowerShell and SQL Server
Posted on July 18, 2016
| 139 words
If you are a SQL Server professional and are interested in spending a day with a bunch of other like-minded individuals, SQL Saturday is for you. It’s a day chock full of SQL Server related presentations given by other members of the community.
Here is a glimpse of my presentation on SQL Server Automation using PowerShell taken from the SQL Saturday event page.
If PowerShell isn’t your thing that’s OK.
[Read More]Comparing databases using SSDT
Posted on June 23, 2016
| 1135 words
Another Twitter-born blog post! I love getting new ideas from the community. Real world ideas for solving real world problems!
The original question was “Does SQL Compare or others prods allow me to compare 1 “gold” db to the 57 “identical” databases in prod at once? asking for a friend ;)”. The original question and link to the twitter feed is off to the right.
The ask here was pretty straight forward.
[Read More]