private SQLTemplates.Builder getMssqlSqlTemplates(DatabaseMetaData md) throws SQLException {
        int databaseMajorVersion = md.getDatabaseMajorVersion();

        if (databaseMajorVersion < 9) {
            return SQLServerTemplates.builder();
        }

        if (databaseMajorVersion == 9) {
            return SQLServer2005Templates.builder();
        }

        if (databaseMajorVersion == 10) {
            return SQLServer2008Templates.builder();
        }

        return SQLServer2012Templates.builder();
    }
Get a SQLTemplates.Builder instance that matches best the SQL engine of the
given database metadata

@param md database metadata
@return templates
@throws SQLException
querydsl-sql/src/main/java/com/querydsl/sql/SQLTemplatesRegistry.java