News for hackers. Stuff that matters.
Re:For Want of a JOIN by zvrba on Thursday December 22, 2022 @12:30PM (#34095944)
> Beyond being untestable, it's also hard to version control and roll back if there's a problem.

Recently, I've learned that SQLServer supports synonyms. So you version functions / procedures (like MySP_1, MySP_2, etc...) and establish a synonym MySP -> MySP_1. Then you test MySP_2 and when ready, change the synonym to point to MySP_2. Of course, all code uses just the synonym.

Re:For Want of a JOIN by dagss on Thursday December 22, 2022 @05:40PM (#34099874)
We use sqlcode as a more general solution to this:

https://github.com/vippsas/sqlcode