[英]How do I put a SQL Server database under version control using Visual Studio Community 2015 RC?
I would like to put my database schema and its data in my git repository and have it version controlled, just like my code.我想把我的数据库模式和它的数据放在我的 git 存储库中并对其进行版本控制,就像我的代码一样。
I have SQL Server 2008 R2 and Visual Studio Community 2015 RC.我有 SQL Server 2008 R2 和 Visual Studio Community 2015 RC。 I know that Visual Studio 2010 upwards, Database project templates have been introduced to do just this.我知道 Visual Studio 2010 以上,已经引入了数据库项目模板来做到这一点。 Please see this article for example.例如,请参阅这篇文章。 But I don't find those templates in my Visual Studio Community Edition 2015 RC installation.但是我在 Visual Studio Community Edition 2015 RC 安装中没有找到这些模板。
Sticking to RC isn't very viable in the long term.从长远来看,坚持使用 RC 并不是很可行。 Especially now, when Visual Studio 2015 RTM has been released.尤其是现在,Visual Studio 2015 RTM 已经发布。
Unless you have some really strong incentive to stay on Release Candidate, I would recommend to:除非你有一些非常强烈的动机继续使用 Release Candidate,否则我建议:
AFAIR, that should give you SQL Server database projects and everything else you might need. AFAIR,这应该为您提供 SQL Server 数据库项目以及您可能需要的所有其他内容。 The only catch is that, as usual, it will be a somewhat longer route if you have ever had any CTP / RC versions installed on the same Windows instance before.唯一的问题是,像往常一样,如果您之前曾在同一个 Windows 实例上安装过任何 CTP/RC 版本,那么这条路线会稍微长一些。 Then again, it's nothing new.再说一遍,这不是什么新鲜事。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.