SevenDaysOfSchema.com – Building this Website

This project dealt with parsing my personal collection of T-SQL scripts into a SQL Server database. I needed to accomplish as much of that process as possible, programmatically because the number of snippets in my collection had become quite large. The scripts needed to be parsed from an XML file that my code snippet software uses and from .SQL files stored in the file system. I needed to be able to link every script to its database record and that link must be maintained, even after the title or content of the script have changed. It was a process that I expected to accomplish in a couple months, but it ended up taking almost a year.

Remove Duplicate WordPress Posts in C# with WordPress API

While doing some QA on WordPress Poster, the program I wrote to post example T-SQL scripts and queries to my WordPress blog, I discovered that it duplicated many blog posts during testing. Thankfully, I anticipated that something like this could happen during the development of WordPress Poster and made sure that any content that it … Continue reading Remove Duplicate WordPress Posts in C# with WordPress API

SQL Server 2016: Look up the Current UTC Offset and Daylight Savings Time indicator for any Time Zone

Sql Server 2016, ships with a new system catalog view that returns the current UTC Offset for a given time zone and whether the time zone is currently observing Daylight Savings Time. Fun fact: Not all UTC offsets are in one hour increments. Some are only 30 minutes. The time zones listed are the ones … Continue reading SQL Server 2016: Look up the Current UTC Offset and Daylight Savings Time indicator for any Time Zone