I use a ordinary battery charger as a power supply. Connect the + line and ground in the engine room in meantime you replace the battery.
It works great for mee on a W 210 1999 model . No warning lights or lost memory after the replace.
W 107 350 SL 1971
W 210 E 240 1999