简体   繁体   English

数据库优先数据库项目

[英]Database first database projects

I have been working on a new project for a little while and already have the Database in sqlServer2008. 我已经在一个新项目上工作了一段时间,并且已经在sqlServer2008中安装了数据库。 I would like to put the DB into a database project to make installation better. 我想将数据库放入数据库项目中,以使安装更好。

Is there a way to import an exisiting database into a DB project? 有没有办法将现有数据库导入数据库项目?

Thanks, 谢谢,

EDIT: This is in VisualStudio 2010 btw... oops! 编辑:这是在Visual Studio 2010 btw ...哎呀!

You can start a new SQL Server 2008 database project. 您可以启动一个新的SQL Server 2008数据库项目。

In the Schema View window, choose the command to Import Database Objects And Settings . 在“架构视图”窗口中,选择“ Import Database Objects And Settings命令。 From there, you'll be asked to choose a database from Server Explorer, or you can browse, provide a connection string, etc. 从那里,将要求您从服务器资源管理器中选择一个数据库,或者您可以浏览,提供连接字符串等。

If this is not what you're looking for , please leave a comment, and we can get it sorted out! 如果这不是您想要的 ,请发表评论,我们可以将其整理出来!

替代文字

替代文字

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

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