def METHOD_NAME(server_id, action_id, dry_run=0):
    log_debug(3, dry_run)
    prepared_query = rhnSQL.prepare(_query_setMemory)
    prepared_query.execute(action_id=action_id)
    row = prepared_query.fetchone_dict()
    if not row:
        raise InvalidAction("No setMemory actions found.")
    if 'uuid' not in row:
        raise InvalidAction("Set Memory action %s has no uuid." % str(action_id))
    if 'memory' not in row:
        raise InvalidAction("setMemory action %s has no memory set." % str(action_id))
    uuid = row['uuid']
    memory = row['memory']
    return (uuid, memory)