Fable 2 does not have traditional cheat codes, only tips and tricks, so reviving your dog works a little differently.
In the base game, the way to bring your dog back is to choose the "loved ones" option at the end. However, if you own the Knothole Island add-on, there is another route. Near the entrance to Knothole Island village, turn left after the dock and you will find a crypt. By sacrificing a human there, you can revive your faithful companion.