'MSSQL specific drop default, which is a pain'

def drop_column_default_sql(self, table_name, name, q_name=None):

    sql = "\n                                SELECT    object_name(cdefault)\n                                FROM    syscolumns\n                                WHERE    id    =    object_id('%s')\n                                AND    name    =    '%s'\n                                "
    cons = self.execute((sql % (table_name, name)), [])
    if (cons and cons[0] and cons[0][0]):
        return ('DROP    CONSTRAINT    %s' % cons[0][0])
    return None
