Utilities for constructing Microsoft SQL Server queries