简体   繁体   English

visual studio 2010数据库项目,有可视方式吗?

[英]visual studio 2010 database project, is there a visual way?

started a visual studio 2010 database project . 开始了一个visual studio 2010数据库项目 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. 但是我只能在文本模式下编写sql,当你在app_data文件夹中添加一个新的数据库并在那里工作时,没有任何功能可以在可视化视图中制作表格。

is this the only way and there is no visual way of doing this in the visual studio 2010 database project? 这是唯一的方法, 在visual studio 2010数据库项目中没有可视方式吗? or am i missing some obvious way of getting to it? 或者我错过了一些明显的方法来达到它?

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

thank you 谢谢

also if there is a tutorial anywhere (video maybe!?) please link it. 如果有任何教程(视频可能!?)请链接它。 i only found importing a database from an existing script video using a wizard. 我只发现使用向导从现有脚本视频导入数据库。 would like new database from scratch without wizard. 想要从头开始没有向导的新数据库。

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. 现在使用Visual Studios内置架构比较创建架构同步。 This will allow you to pull changes between your dev database and your database project back and forth. 这将允许您来回删除开发数据库和数据库项目之间的更改。

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). 由于您可以双向同步,因此可以通过VS内部的数据库图表(通过服务器资源管理器)对数据库进行更改,也可以使用SQL Server Management Studio(或其他任何您喜欢的方式)。 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. 它也在相反的方向工作,只需更改一个脚本然后与您的开发数据库同步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM