visual studio 2010数据库项目,有没有一种可视化的方式? [英] visual studio 2010 database project, is there a visual way?

查看:242
本文介绍了visual studio 2010数据库项目,有没有一种可视化的方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动了 visual studio 2010数据库项目。但是我只能在文本模式下写sql,没有任何功能,例如在视觉视图中的表,当你添加一个新的数据库到app_data文件夹和它的工作存在。

started a visual studio 2010 database project. however i am only able to write sql in a text mode, there is no functionality in making the table for example in a visual view as exists when you add a new database to app_data folder and the work on it there.

这是唯一的方法,在visual studio 2010数据库项目中没有可视化的方法来实现这一点,或者我缺少一些明显的方法?

is this the only way and there is no visual way of doing this in the visual studio 2010 database project? or am i missing some obvious way of getting to it?

http:// img693 .imageshack.us / img693 / 9311 / 42342496.png

谢谢

>如果有教程在任何地方(视频也许!?)请链接它。我只是发现使用向导从现有的脚本视频导入数据库。

推荐答案

有一个简单的解决方法,能力。你需要一个开发数据库设置在任何地方。现在使用Visual Studios内置模式比较创建模式同步。这将允许你在你的dev数据库和你的数据库项目之间来回切换。

There is a simple workaround you can use to have visual design capabilities. You need a dev database set up anywhere. Now create a schema synchronization with Visual Studios built-in Schema Comparison. This will allow you to pull changes between your dev database and your database project back and forth.

由于您可以在两个方向同步,您可以通过数据库图表从VS内部(通过服务器资源管理器)更改您的数据库,或者您可以使用SQL Server Management Studio (或任何你喜欢的)。完成后,只需使用模式比较同步更改即可。它也工作在相反的方向,只需更改一个脚本,然后与您的开发数据库同步。

Since you can sync in both directions, you can make changes to your database via database diagrams from inside VS (via the Server Explorer) or you can use SQL Server Management Studio (or whatever else you like). When you're done, simply sync your changes using the schema comparison. It works in the opposite direction too, simply change one of your scripts and then sync with your dev database.

这篇关于visual studio 2010数据库项目,有没有一种可视化的方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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