I have to disagree with obyone. I worked at a GM dealership & from experience NEVER disconnect the battery in hopes to repair a problem because it doesn't work. But more importantly, the computer saves information that the tech needs to properly diagnose your vehicle like what happen during the failure or what trouble code was set. Yes even if there is a problem with the A/C system the computer saves a code even though the check engine light didn't come on.
Also disconnecting & reconnecting the battery terminals repeatedly is a good way to send a power surge though the electrical system, blowing fuses & frying control modules.