In: SSIS
28 Sep 2011Set variables to contain the package start datetime with the time truncated, making it easier to compare dates directly.
In: SQL Server
31 May 2011Code to streamline adding and fixing roles for users, groups, and principals across multiple databases on a single SQL Server instance.
Use a CTE to recursively roll up all descendant records into separate groups, regardless of level. Example data and Common Table Expression code included.
In: SQL Server
17 Feb 2009The DATETIME data type is often misunderstood and used inefficiently, forcing table scans with YEAR or MONTH functions. With the proper knowledge and tools, developers can more efficiently leverage the DATETIME data type and speed up slow-running queries.
I stumbled upon a few little gems that SQL Server 2008 includes that I hadn’t yet heard about. Although, very few are deploying SQL 2008 to production currently, these enhancements might make life programming in 2008 much easier.
