private void DropType(ExecutionContext context, ObjectName typeName)
{
if (!context.DirectAccess.DropObject(DbObjectType.Type, typeName))
throw new StatementException(String.Format("Could not drop type '{0}' for an unknown reason.", typeName));
context.DirectAccess.RevokeAllGrantsOn(DbObjectType.Type, typeName);
}