What caliber handgun should I purchase for minimal home security?

I want to know if something like a 22cal is adequate for home protection or should I get a larger caliber gun? I don't want to specifically kill someone that breaks in, just scare them.
28 answers 28