There are various theories about how much B12 that is destroyed by cooking. According to this site, which by the way also contains a lot info on interaction between B12 and various chemicals, '30% is typically destroyed by cooking'.