Bill R: Vitamin B-12 Injections?

Bill…(or anyone)…When I was younger, I remember getting a Vitamin B shot in the rump which helped boost defence against colds, tiredness, etc. I recently found a vet supply house that sells B-12 for injection. Is this safe? Helpful?? If so, what would be the dosage amount and frequency?