通过 Visual Studio 解决方案集成或链接到 SQL Server Management Studio 项目
虽然我的 .NET 项目的大部分工作都是在 Visual Studio 中完成的,但在编辑存储过程和执行其他与数据库相关的任务时,我更喜欢在 SQL Server Management Studio [SSMS](我当前使用的是 2005 版本)中工作。一个项目。
我过去只是打开大量的查询窗口,提交我的更改
,然后继续,但我最近在 SSMS 中发现了项目和解决方案,并发现它们是封装多个查询/脚本的好方法与同一个项目相关联。
我尝试将 SSMS 项目添加到我的 Visual Studio 2010 解决方案中,但似乎不可能。我想包含 SSMS 项目和/或从我的 VS 2010 解决方案链接到它,以便我将所有内容整齐地组合在一个位置。有什么好的方法可以做到这一点?
While most of the work for my .NET projects is done in Visual Studio, I prefer to work in SQL Server Management Studio [SSMS] (I'm currently using the 2005 version) when editing stored procedures and doing other DB-related tasks for a project.
I used to just open a ton of query Windows, commit my alter
s, and move on, but I recently discovered Projects and Solutions within SSMS and find them to be a great way to encapsulate multiple queries/scripts that are tied to the same project.
I tried adding the SSMS project to my Visual Studio 2010 solution, but it seems that's not possible. I'd like to include the SSMS project and/or link to it from my VS 2010 solution so that I have everything neatly grouped together in one place. What's a good way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案取决于您正在执行的脚本类型。
如果您使用的脚本适用于 SQL 实例或数据库,则可以将新的 SQL Server 数据库项目添加到 Visual Studio 2010 解决方案中。然后只需将脚本复制到项目中即可。 (SQL Server 项目包含在 Visual Studio 2010 Premium 和 Ultimate 中。)
Visual Studio 2010 不(也不会)支持任何与商业智能相关的项目。
The answer depends on the kind of scripts you are executing.
If you are working with scripts that work with an SQL instance or database, you can add a new SQL Server Database Project to your Visual Studio 2010 solution. Then simply copy your scripts to the project. (SQL Server projects are included in Visual Studio 2010 Premium and Ultimate.)
Any business intelligence-related items are not (and will not be) supported by Visual Studio 2010.