printlnIdentifier(tableName);
printAlwaysQuotedIdentifier(tableName);
    public void dropTable(Table table) throws IOException    {        String tableName = getTableName(table);        writeQuotationOnStatement();        print("IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = ");        printIdentifier(tableName);        println(")");        println("BEGIN");        println("     DECLARE @reftable nvarchar(60), @constraintname nvarchar(60)");        println("     DECLARE refcursor CURSOR FOR");        println("     select reftables.name tablename, cons.name constraintname");        println("      from sysobjects tables,");        println("           sysobjects reftables,");        println("           sysobjects cons,");        println("           sysreferences ref");        println("       where tables.id = ref.rkeyid");        println("         and cons.id = ref.constid");        println("         and reftables.id = ref.fkeyid");        print("         and tables.name = ");        printlnIdentifier(tableName);        println("     OPEN refcursor");        println("     FETCH NEXT from refcursor into @reftable, @constraintname");        println("     while @@FETCH_STATUS = 0");        println("     BEGIN");        println("       exec ('alter table '+@reftable+' drop constraint '+@constraintname)");        println("       FETCH NEXT from refcursor into @reftable, @constraintname");        println("     END");        println("     CLOSE refcursor");        println("     DEALLOCATE refcursor");        print("     DROP TABLE ");        printlnIdentifier(tableName);        print("END");        printEndOfStatement();    }