print("IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'RI' AND name = ");
print("IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'F' AND name = ");
    protected void writeExternalForeignKeyDropStmt(Table table, ForeignKey foreignKey) throws IOException    {        String constraintName = getForeignKeyName(table, foreignKey);        print("IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'RI' AND name = ");        printAlwaysSingleQuotedIdentifier(constraintName);        println(")");        printIndent();        print("ALTER TABLE ");        printIdentifier(getTableName(table));        print(" DROP CONSTRAINT ");        printIdentifier(constraintName);        printEndOfStatement();    }