[#2646] Fix for SQL Server 2008