The computer is normally on the left hand side of the engine compartment near the windshield. You don't have to disconnect the battery, but it is always better to be safe and do so anyway
RepairPal Certified shops can diagnose and repair your 1997 BMW 328i. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.