How do you flip bit field values from 0 to 1 and back? My favorite method is the ~ operator. Here is a short script that shows it.
SQL SERVER – Database Stuck in Restoring State
Is your database stuck in restoring state after you restored all backups? RESTORE DATABASE WITH RECOVERY brings it online. I show what to run and when.
Why Use Biml to Build SSIS Packages Faster
Why use Biml when SSIS already has a designer? This guest post by Reeves Smith shows how one XML file and a single variable can generate many near-identical SSIS packages, and when the extra effort pays off.
SQL SERVER – Search Records with Single Quotes – Part 2
Readers sent more ways to find records with single quotes: CHAR(39), CHARINDEX and REPLACE. Here are their suggestions, and all of them perform well.
SQL SERVER – Search Records with Single Quotes
A reader asked how to search records with single quotes in a table column. A simple LIKE query with doubled quotes finds them.
SQL SERVER – Combined Multiple .SQL files into One Single File
A friend reading on his phone wanted one file instead of 100s of scripts. I combined multiple .SQL files into one single file from the command prompt.
EXCEL / SQL SERVER – Extract the Domain from an Email Address
I took the long route to extract the domain from an email address in Excel by going through SQL Server. This is the simple Excel formula I should have used.







