简体   繁体   English

如何将我的Microsoft SQL Database_Diagram存储在SSDT项目中?

[英]How can I store my Microsoft SQL Database_Diagram inside SSDT project?

I'm using microsoft SQL Server Data Tools (SSDT), in my projects to try to keep everything in order. 我正在使用微软SQL Server数据工具(SSDT),在我的项目中试图保持一切顺序。 I was wondering if anyone know how to store the Database Diagram into SSDT Project, in order to don't lose any work and keep this model updated with my team? 我想知道是否有人知道如何将数据库图存储到SSDT项目中,以免丢失任何工作并让我的团队更新此模型?

I tryed to compare it using schema, but it didn't exists. 我尝试使用模式进行比较,但它不存在。 I also couldn't find any Database Diagram in Visual studio 2013. 我也在Visual Studio 2013中找不到任何数据库图表。

Am I wrong to try to use this model type? 我错了尝试使用这种型号? Are there better ways to do it? 有更好的方法吗? Also, Is it possible to create Jobs throught SSDT? 另外,是否可以通过SSDT创建Jobs?

在此输入图像描述

在此输入图像描述

Thank you very much, 非常感谢你,

The database diagrams are stored in internal tables so you could add their definitions and include the data in a post deploy script but you would end up deploying to all your environments which is unusual (I don't know your circumstance so I won't say wrong!). 数据库图存储在内部表中,因此您可以添加其定义并将数据包含在post deploy脚本中, 最终会部署到所有环境中,这是不寻常的(我不知道您的情况所以我不会说错误!)。

Unless you particularly needed the diagrams in ssms I would look to something else, redgate have a database diagramming tool, I prefer to keep a copy of Visio 2010 pro to generate them, the vsd files can then be added to the project and shared between the team. 除非你特别需要ssms中的图表我会看到别的东西,redgate有一个数据库图表工具,我更喜欢保留一份Visio 2010 pro来生成它们,然后可以将vsd文件添加到项目中并在之间共享球队。

I assume it is to help document your databases but If you wanted the editing and designer support from diagrams you get that other ways with ssdt. 我假设它是为了帮助记录您的数据库,但是如果您想从图表中获得编辑和设计器支持,那么您可以通过ssdt获得其他方式。

Re: jobs, there is no native object but you can create them in pre/post deploy scripts. Re:作业,没有本机对象,但您可以在部署前/后脚本中创建它们。

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

相关问题 如何在项目设置中添加SQL Server数据库 - How can I add SQL Server Database in my project setup 从SSDT项目部署SQL数据库更改 - Deploying SQL Database changes from a SSDT project 如何在Microsoft SQL Server Management Studio中更新数据库图表 - How do I update a database Diagram in Microsoft SQL Server Management Studio 如何在Microsoft Azure的Sql数据库中存储数据 - How To store data in Sql database in Microsoft Azure 如何从现有数据库创建SSDT项目? - How to create SSDT project from existing database? 如何在 Microsoft Azure SQL 数据库中安排 SQL 作业? - How can I schedule a SQL job in Microsoft Azure SQL Database? 如何将数据库(Microsoft SQL Server 2012)与Mathematica连接? - How can I connect database(Microsoft SQL server 2012) with Mathematica? 无法从本地PC上的Visual Studio 2010(SSDT)创建SQL Server 2012数据库 - Can't create SQL Server 2012 database from Visual studio 2010 (SSDT) on my local PC 通过命令行部署 SQL Server 数据库项目 (SSDT) - Deploy SQL Server database project (SSDT) via command line 如何针对使用localdb的SQL Server企业功能的SSDT项目进行单元测试? - How do I unit test a SSDT project which uses sql server enterprise features against localdb?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM