Should an underground drainage pipe be perforated?
Typical practice is to make the first 10 feet or so solid and use perforated after that, but that would vary depending on where it is relative to the building basement floor - for a pumped sump I assume the pipe is above the floor level, so 10 feet of solid to get it away from the building and then the remainder perforated to allow it to drain water from the yard as well.

If the pipe is below the basement floor level you would not need a pump, as gravity flow downhill from there would carry water away, and it would all be perforated.