DBTypeFactory currently contains: } else if (db_name.indexOf("sql server") != -1) { if (db_version.startsWith("09.00") || db_version.startsWith("9.00")) { // SQL Server 2005 database_type_class = SQLServer2005DatabaseType.class; } else if (db_version.startsWith("10.00")) { // SQL Server 2008 database_type_class = SQLServer2008DatabaseType.class; } } This will not match SQL Server 2008 R2, whose version will start with "10.50". See http://support.microsoft.com/kb/321185 for details on SQL Server versioning.
My understanding after talking to Joe, who implemented SQL-Server, is that our code only supports selected versions. So just adding the version to the type factory may not be enough.