How to create a database project in Visual Studio 2013

*爱你&永不变心* 提交于 2019-12-02 13:25:09

问题


I'm migrating a solution which contains some C# projects from Visual Studio 2008 to VS2013. The migration went fine, with a few adjustments, but there's also a .dbp project (database project, from VS2008), which refuses to migrate / load in VS2013.

The closest project type I found in this newer version is "SQL Server Database Project", I've created one and added my existing .sql script files, but this project type (.sqlproj) appears to be something different. For example, VS 2008's "database project" does not build. Also, I had a hard time trying to add a reference to my existing SQL database running under SQLExpress.

I've also set BuildAction = None to all my script files, and now I can open each of them manually and execute. But still, I'd like to select multiple files and execute them all at once. Seems I'm missing something.

So, is there a way to accomplish that?


回答1:


I suggest you look at the following article to convert the dbp to dbproj: MSDN

And after that look at the following link to convert dbproj to sqlproj: Tentacle Software Blog



来源:https://stackoverflow.com/questions/25654286/how-to-create-a-database-project-in-visual-studio-2013

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!