Should you store your SQL Stored Procedures in Source Control?

前端 未结 17 1298
南方客
南方客 2021-02-05 18:33

When developing an application with lots of stored procedures, should you store them in some sort of source versioning system (such as source-safe, TFS, SVN)? If so, why? And is

17条回答
  •  深忆病人
    2021-02-05 19:23

    Absolutely. Positively.

    A set of SPs is an interface, that is likely to be modified more frequently than structural changes. And because SPs contain business logic, changes should be stored in version control to track the modifications and adjustments to the logic.

    Storing these in version control is a symptom of organizational maturity at a coding level, and is a best practice.

提交回复
热议问题