r/ProgrammerHumor • • Sep 20 '26

Meme grabbingEverything

Post image
5.4k Upvotes

258 comments sorted by

View all comments

Show parent comment

41

u/PerpetuallyDistracte Sep 21 '26

I worked at a manufacturing facility that did all their routing and logistics logic using a series of linked stored procedures and triggers written in T-SQL, all developed as custom code by one guy. It was insane. It worked great, but was an absolutely ridiculous configuration nightmare. And guess how much documentation there was ... That's right! Zero!

6

u/Theron3206 Sep 21 '26

This is one of the reasons why I think stored procedures are nearly a last resort. Nobody ever documents them, or puts them in version control or anything.

10

u/ih-shah-may-ehl Sep 21 '26

Given that stored procedures are literally just text which takes up zero space in the grand scheme of things, and text based version control is a solved problem, I never understood why stored procedure versioning isn't an out-of-the-box feature on every major dbms

0

u/geek-49 Sep 22 '26

One possible reason: Most VCS are either proprietary (source code not available to build into the DBMS), or GPL (and proprietary DBMS doesn't want to risk using copylefted code).