Changed T-SQL in two tests to be SQL Server 2005 compatible.

This allow the full suite to run successfully.