When disconnecting battery on my car i did have to enter code in stereo after reconnecting.
A possible option to get the code is to contact your local dealer. I have done this in the past with a previous car,dealer did ask me to bring proof of ownership & id(for obvious reasons) they were then...