I agree 100% with Ginger, it sounds like an attack of
pancreatitis to me. The normal treatment for
pancreatitis is one week of hospitalization on NOTHING but IV fluids, not even water to drink, to give the pancreas TOTAL REST. After the week is up, they start slowly introducing very bland food.
Any time a dog is fed human food there is the risk of them developing pancreatitis, and even one meal can be enough to cause it.