|
|
|
|
|
by zvrba
1277 days ago
|
|
> 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. |
|
https://github.com/vippsas/sqlcode