SQL Server dbo.sysdiagrams 是用户表或系统表 [英] SQL Server dbo.sysdiagrams is a user table or system table

查看:39
本文介绍了SQL Server dbo.sysdiagrams 是用户表或系统表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在简单数据库中使用数据库图表时,SQL Server 在 Table\Systam Tables 节点(在 Microsoft management studio\object explorer 中)创建一个 dbo.sysdiagrams 表.但是 sysdiagrams 表在 SQL Server 中被标记为用户表.您可以通过以下查询获取用户表.

When use Database Diagrams in a simple database, SQL Server create a dbo.sysdiagrams table in the Table\Systam Tables node (in Microsoft management studio\object explorer). But sysdiagrams table marked as user table in SQL Server. you can get user table by below query.

SELECT * 
FROM sys.tables t
WHERE OBJECTPROPERTY(t.object_id,'IsUserTable') = 1

我不知道 sysdiagram 表是系统表还是用户表.

I don't know that sysdiagram table is a system table or is a user table.

存在 microsoft_database_tools_support 值为 1 在 sysdiagram 的扩展属性中,确定该表自动创建.

Exists microsoft_database_tools_support with value 1 In the extended property of sysdiagram, that determine this table created automatically.

推荐答案

系统表由 SQL Server 内部使用,它们在每个用户数据库中都是相同的.

System tables are used internally by the SQL Server, they are the same in every user database.

从服务器的角度来看,sysdiagrams 不是系统表.

sysdiagrams is not a system table from the server point of view.

但是 SQL Server Management Studio 创建它是为了存储图表数据,因此它也将其归类为系统表.

But SQL Server Management Studio creates it to store the diagram data, so it also categorizes it as a system table.

您可以使用您提到的扩展属性排除此类系统表.

You can exclude such kinda system tables using the extended attribute you mentionned.

这篇关于SQL Server dbo.sysdiagrams 是用户表或系统表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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