Narrative:

We started the right engine when we were number 4 for takeoff. It was the first officer's leg and the initial takeoff was normal. After gear retraction and approximately 800 ft AGL I heard a thump and then a couple seconds later another thump. I determined it was the right engine after scanning the engine instruments; took control of the aircraft; and pulled the right engine to idle. I declared an emergency with departure and requested vectors to the active runway. I also gave the lead flight attendant a complete briefing. The first officer ran the QRH engine compressor stall procedure and we continued to landing with the right engine in idle. The approach and landing were uneventful at a gross weight of just under 104;000 pounds (just lucky I guess).after landing we were met by crash fire rescue equipment who inspected the aircraft and right engine. We then continued to the gate uneventfully with a fire vehicle in tow. I guess maintenance will have to figure out what went wrong.

Google
 

Original NASA ASRS Text

Title: A B717 declared and emergency and returned to their takeoff airport following repeated compressor stalls from the right engine.

Narrative: We started the right engine when we were number 4 for takeoff. It was the First Officer's leg and the initial takeoff was normal. After gear retraction and approximately 800 FT AGL I heard a thump and then a couple seconds later another thump. I determined it was the right engine after scanning the engine instruments; took control of the aircraft; and pulled the right engine to idle. I declared an emergency with Departure and requested vectors to the active runway. I also gave the Lead Flight Attendant a complete briefing. The First Officer ran the QRH Engine Compressor Stall procedure and we continued to landing with the right engine in idle. The approach and landing were uneventful at a gross weight of just under 104;000 LBS (just lucky I guess).After landing we were met by CFR who inspected the aircraft and right engine. We then continued to the gate uneventfully with a fire vehicle in tow. I guess Maintenance will have to figure out what went wrong.

Data retrieved from NASA's ASRS site as of July 2013 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.