The injection could have had an impact, especially if it was dex.
It's not unusual for a dog with an upset gut to drink a lot and then be unable to hang on. If you can get his system under control, the problem might resolve. And, as macoduck said, it's always helpful to rule out a UTI.