SQL 命令添加数据库图表 [英] SQL Command Add Database Diagramming

查看:36
本文介绍了SQL 命令添加数据库图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 sqlserver 2008 上是否有 tsql 命令可以运行以启用数据库图表而不是出现此对话框:

Is there a tsql command on sqlserver 2008 which can be run in order to enable Database Diagramming instead of this dialog appearing:

该数据库没有使用数据库图表所需的一个或多个支持对象.你想创造它们吗?

This database does not have one or more of the support objects required to use database diagramming. Do you wish to create them?

推荐答案

脚本有点长,无法在此处添加,但您可以执行以下操作.1) 创建一个新的数据库.2) 启动sql server profiler3) 单击 management studio 中的Database Diagrams"文件夹.4) 清除分析器.5) 确认消息框提示启用图表.6) Profiler 现在包含启用图表的脚本.7) 在分析器中选择脚本并从底部窗格复制输出.

The script is a little too long to add here, but here's what you can do. 1) Create a new database. 2) Start sql server profiler 3) Click the "Database Diagrams" folder in management studio. 4) Clear the profiler. 5) Confirm the message box with a prompt to enable diagramming. 6) Profiler now contains the script that enabled diagramming. 7) Select the script in profiler and copy the output from the bottom pane.

这篇关于SQL 命令添加数据库图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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