At least for MS SQL, code is fully source controllable, I have it on Git and we have all automated deploys and niceties.
Views can be a problem from a performance side, Oracle has materialized views but MS SQL lags behind (I think Postgre has them too).