What Miro says does apply to some Mercs but my handbook says QUOTE.
Diconnecting the battery
Do not disconnect the terminal clamps from the battery while the engine is running.This could damage electronic equipment (for example the alternator beyond repair).
Switch off all electrical consumers.
Disconnect the negative terminal first,then positive.
Reconnecting the battery
All electrical consumers must be switched off
connect the positive terminal first,then the negative.
Make sure that the terminal clamps are not accidentally confused.
reset the side windows,sliding/tilting sunroof and the electronic stability programme once the battery has been reconnected.
Note.
Disconnect the ventilation hose before removing the battery.Connect the ventilation hose to the battery after installing it.
This is the wording in my Mercedes supplied hand book that came with the car.
Before you disconnect your battery you should go to your hand book or search the net if you don't have one because Miro is correct to a certain extent that if you disconnect your battery you will fry some of your electronics.
With these type of Mercs you even have to have the battery changed by somebody with the proper gear if it needs replacing,hope this helps
Norman