sql server 2008数据库图表表名搜索

发布于 2024-09-29 15:39:56 字数 125 浏览 0 评论 0原文

我有 SQL Server 2008 enterprise,其数据库最多包含 100 个表。我生成了包含所有表的数据库图表,因为我想了解数据库的概述。

我的问题是:如何快速找到我想要的图表,有没有关于图表搜索的搜索功能?

I have SQL server 2008 enterprise with a database containing up to 100 tables. I generated a database diagram with all of the tables because I want to get an overview of the database.

My question is : How can I quickly find the diagram I want, are there any search functions regarding to diagram search ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

淤浪 2024-10-06 15:39:56

在 SQL Server 中,图表存储在 sysdiagrams 表中,每当创建图表时都会创建该表。表定义如下。

CREATE TABLE [dbo].[sysdiagrams](
    [name] [sysname] NOT NULL,
    [principal_id] [int] NOT NULL,
    [diagram_id] [int] IDENTITY(1,1) NOT NULL,
    [version] [int] NULL,
    [definition] [varbinary](max) NULL)

除了该表之外,还创建了一些存储过程。

  • sp_alterdiagram
  • sp_dropdiagram
  • sp_creatediagram
  • sp_renamediagram
  • sp_helpdiagramdefinition
  • sp_helpdiagrams
  • sp_upgradediagrams

sp_helpdiagrams 过程将为您提供当前拥有的所有图表的列表。

In SQL Server the diagrams are stored in the sysdiagrams table, which is created whenever a diagram is created. The table definition is as follows.

CREATE TABLE [dbo].[sysdiagrams](
    [name] [sysname] NOT NULL,
    [principal_id] [int] NOT NULL,
    [diagram_id] [int] IDENTITY(1,1) NOT NULL,
    [version] [int] NULL,
    [definition] [varbinary](max) NULL)

Along with the table, a few stored procedures are also created.

  • sp_alterdiagram
  • sp_dropdiagram
  • sp_creatediagram
  • sp_renamediagram
  • sp_helpdiagramdefinition
  • sp_helpdiagrams
  • sp_upgradediagrams

The sp_helpdiagrams procedure will give you a listing of all the diagrams you currently have.

甜柠檬 2024-10-06 15:39:56

实际上SQL Server 2008不支持任何与您所要求的类似的功能。您必须手动进行搜索。

Actually SQL Server 2008 doesn't support any feature similar to what you are asking. You have to do the searching manually.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文