Unless your on the PC, he will always follow you, even (and especially) to death, and I'm not 100% sure that there is a console command that makes him stop following you.
Which is bad, because he's kinda' cute. In a undead way.
If you're on the computer then there would be consol commands to either drop the dogs speed to 0 (might work) or if you can find the script for it then mod that to your desire, on the xbox however... after a demoralize spell wears off the dog will probably come running to you again
This is very random ok but what if you got a guard to chase you (you cant have passed the SI before this) to your courters then accept going to prison, maybe your dog will stop following you? as I said this is just off the top of my head
The guard won't attack the dog because you dont resist arrest
well if the body stays then every time you go there you could always raise it (the spell or staff) then before you leave 'put it to sleep' ^^ until you return
mine followed me around for a long time. That is until I returned from the shivering isles after finishing the quests and ran into like 3 mythic dawn hidden operative in the imperial city at once. Somehow he got caught in the resulting riot. His body was there a week later so I decided to dump it in the canals running along the market district.
I would be a procrastinator, but I keep putting it off.
I've trapped it in my quarters before, I get it stuck behind the storage then quickly run out of my place, I don't know if that will work for you and I'm pretty sure you have to keep your distance or he will follow you again