Prochlorperazine or Compazine can be used for dogs. However, before giving your dog this medication, you need to be sure the vomitting isn't being caused by something else. If that's the case you will do more harm than good. Vomitting right after eating or drinking can be the cause of obstruction or toxins. Also vomitting once in a while is normal.
Please let me know if you have any further questions or if I could be of any other assitance.