March 2012

A mock too far? What is good practice for mocking database objects with tSQLt?

28 March 2012

tSQLt, the open source unit testing framework for SQL2005+ has some really great features that allow database objects to be mocked, dramatically reducing the time needed to set up reference data for each test.  But sometimes, just because you can do something doesn’t mean that you should; at least not all the time.  In this […]

Read the full article →

Unit Testing Databases with tSQLt Part 10 – testing a foreign key’s ON DELETE or ON UPDATE actions

20 March 2012

In Part 9, we looked at basic unit testing of a foreign key ensuring that basic referential integrity was properly enforced. In this post, we continue writing tests for foreign keys, delving in to cascading deletes (or not cascading as the case may be). We’re using deletes in this article but the same approach and […]

Read the full article →

T-SQL Tuesday #028 – Specialist? Generalist? Or Both?

13 March 2012

delaware florida This month’s T-SQL Tuesday is hosted by Argenis Fernandez with a theme of “Jack of All Trades, Master of None?”.  As Argenis asks, are you a generalist, a specialist, or both? Can you even be both? In this post I will look at what those terms have meant and do mean to me.

Read the full article →

From Zero to SSIS – Course Review

12 March 2012

I’ve used SQL Server Integration Services (SSIS) for a number of years, although not with any regularity so I wanted to find a course to help me build on that experience and take my skills to the next level. The course I chose was “From Zero to SSIS” presented by Andy Leonard (blog | twitter) […]

Read the full article →

Unit Testing Databases with tSQLt Part 9 – testing a FOREIGN KEY constraint

7 March 2012

In Part 8, we looked at testing string searches as part of a WHERE clause and also validating the effect of supplying multiple, cumulative search conditions. In this post, we go back to our DDL tests and explore a couple of approaches to unit testing foreign keys.

Read the full article →

Guest Post – All-Pairs Testing

1 March 2012

I am very pleased to be able to present this article written by Dennis Lloyd Jr (blog | twitter), creator of the Test Driven Databases Initiative and one of the authors of the tSQLt Unit Testing framework for SQL Server.  One of a series on applying test case heuristics to database testing, this article explores […]

Read the full article →