对我的SQL Server存储过程进行版本控制的最佳方法是什么? [英] What is the best way to version control my SQL server stored procedures?

查看:342
本文介绍了对我的SQL Server存储过程进行版本控制的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对数据库对象进行版本控制的最佳方法是什么?我正在使用Visual Studio 2005/2008和SQL Server2005.我希望可以与SVN一起使用的解决方案.

What is the best way to version control my database objects? I'm using Visual studio 2005/2008 and SQL server 2005. I would prefer a solution which can be used with SVN.

推荐答案

与其他代码相同,在应用程序解决方案中添加数据库项目",并在其中保留用于构建数据库对象的sql文件.对这些代码文件使用与对应用程序相同的版本控制.

Same as your other code, add a "Database project" to your application solution and keep the sql files used to build the database objects in there. Use the same version control for those code files as you do for the application.

这篇关于对我的SQL Server存储过程进行版本控制的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆