http://www.devart.com/dotconnect/db2/docs/MetaData.html

Instead of specifying the metadata collection name as a string constant, you may use members of System.Data.DbMetaDataCollectionNames and Devart.Data.DB2.DB2MetadataCollectionNames as the first GetSchema argument values. The members of these classes are the string fields, each field stores the corresponding metadata collection name. It is recommended to use these fields rather than manually input the collection names manually as the string constants because in case of using these fields, you will find misspellings at compile-time, and intellisense will show you all the available metadata collection names.
GetSchema Method Reference
The following table provides detailed information on metadata collections that can be retrieved using the GetSchema method, and restrictions that can be applied for them. Some collections may be not supported in older server versions. If you try to get metadata for unsupported collection you will get exception with message "Collection not defined".
Collection Name
Number of restrictions
Remarks
MetaDataCollections 0
Returns this list. Same as using GetSchema() method without parameters.
Restrictions 0
Lists restrictions for each metadata collection.
ReservedWords 0
Lists all reserved words used in the server.
DataSourceInformation 0
Returns the information about the data source, associated with this DB2Connection instance.
DataTypes 0
Lists data types supported by DB2 server.
Catalogs 0
Lists databases on the DB2 server.
Schemas 0
Lists schemas on the DB2 server.
Tables 4
GetSchema("Tables") returns the list of all tables (and/or views) on the server that you have access to.
  • The first restriction for this collection is name of a database.
  • The second restriction for this collection is name of a schema. If specified, the method returns all tables within the schema.
  • The third restriction is table name.
  • The third restriction is table type. Can be 'TABLE' or 'VIEW' or 'ALIAS'.
TablePrivileges 3
GetSchema("Views") returns the list of table privileges on the server that you have access to.
  • The first restriction for this collection is name of a database.
  • The second restriction for this collection is name of a schema. If specified, the method returns the table privileges within the schema.
  • The third restriction is the name of the table.
Columns 4
Returns the list of columns, their type and some extra information.
GetSchema("Columns") returns the list of all columns in all
databases on the server you have access to.
  • Restricted by database name, the method returns all columns in the specified
    database.
  • Restricted by schema name, the method returns all columns in the specified
    schema.
  • The second restriction is a name of a table that GetSchema method should
    search in.
  • At last, you can specify column name.
Column Privileges 4
Returns the list of column privileges.
GetSchema("Column Privileges")
returns the list of column privileges in all databases on the server you have
access to.
  • Restricted by database name, the method returns all column privileges for
    the specified database.
  • Restricted by schema name, the method returns all column privileges for the
    specified schema.
  • The third restriction is a name of a table that GetSchema method should
    search in.
  • At last, you can specify column name.
Indexes 5
Returns the list of indexes and their details.
  • The first restriction is name of a database.
  • The second restriction is name of a schema the indexes belongs to.
  • The third restriction is name of a table that uses the index.
  • The fourth restriction defines whether to return information for unique
    indexes only. Can be true or false.
  • The last restriction is name of schema the table belongs
    to.
Functions 3
Returns the list of functions on the server. The following restrictions may
be specified:
  • Database name;
  • Schema name;
  • Function name.
Procedures 4
Returns the list of procedures on the server. The following restrictions
may be specified:
  • Database name;
  • Schema name;
  • Module name;
  • Procedure name.
Function Parameters 4
Returns the list of function arguments. The following restrictions may be
specified:
  • Database name;
  • Schema name;
  • Procedure name;
  • Argument name.
Procedure Parameters 5
Returns the list of procedure arguments. The following restrictions may be
specified:
  • Database name;
  • Schema name;
  • Module name;
  • Procedure name;
  • Argument name.
PrimaryKeys 4
Returns the list of primary keys on the server. The following restrictions
may be specified:
  • Database name;
  • Schema name;
  • Table name.
ForeignKeys 6
Returns the list of foreign keys on the server. The following restrictions
may be specified:
  • Primary key database name;
  • Primary key schema name;
  • Primary key table name.
  • Foreign key database name;
  • Foreign key schema name;
  • Foreign key table name.

DB2 Metadata的更多相关文章

  1. DB2 bind on z/os

    BIND and REBIND options for packages and plans There are several options you can use for binding or ...

  2. Ubuntu / Win7 安装db2 v10.5

    抓紧下载v10.5fp1_linuxx64_expc.tar.gz到~/Downloads/java_softcd java_softtar xf v10.5fp1_linuxx64_expc.tar ...

  3. Oracle、DB2、MySql、SQLServer JDBC驱动

    四种数据库JDBC驱动,还列出了连接的Class驱动名和Url Pattern,DB2包括Type 2.Type 3和Type 4三种模式.注意驱动包名称的大小写. Oralce连接驱动包名和URL ...

  4. SQLite metadata

    http://www.devart.com/dotconnect/sqlite/docs/MetaData.html https://github.com/sqlitebrowser/sqlitebr ...

  5. Android 获取meta-data中的数据

    在 Android 的 Mainfest 清单文件中,Application,Activity,Recriver,Service 的节点中都有这个的存在.很多时候我们可以通过 meta-data 来配 ...

  6. DB2重启数据库实例

    DB2重启数据库实例时,有时停止实例会失败,此时需要先确认没有应用链接数据库,然后再关闭数据库实例,并重新启动. 1.查看是否有活动的链接 命令:db2 list applications for d ...

  7. 你搞懂 ORACLE、 SQLSERVER、MYSQL与DB2的区别了吗

    ORACLE. SQLSERVER.MYSQL与DB2的区别--平台性:    Oracle.MYSQL与DB2可在所有主流平台上运行:    SQL Server只能在Windows下运行: --安 ...

  8. MySQL 之 Metadata Locking 研究

    MySQL5.5 中引入了 metadata lock. 顾名思义,metadata lock 不是为了保护表中的数据的,而是保护 database objects(元数据)的.包括表结构.schem ...

  9. CentOS系统yum源使用报错:Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge.

    服务器上的yum突然不好使用,使用yum的时候报错如下:[root@bastion-IDC src]# yum list......Could not retrieve mirrorlist http ...

随机推荐

  1. Google 里的软件工程学

    简评:原文作者 Fergus Henderson 在 Google 工作了 10 年以上,目前负责 Google 的 text-tospeech 工程小组.有很多书籍或文章会从 商业/管理 等非技术角 ...

  2. Java常见错误及解决方案

    1.类定义未找到:java.lang.NoClassDefFoundError java类文件没有上传:上传了,服务器没找到,建议将JSP页面重新更新或重启服务器. 2.

  3. Memcached安装教程及使用

    Memcached Memcached 是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载 Table of contents 安装 使用 在spring中使用 安装 下载下来m ...

  4. leetcode-383-Ransom Note(以空间换时间)

    题目描述: Given an arbitrary ransom note string and another string containing letters from all the magaz ...

  5. Flowportal-BPM——环境配置

    环境配置: 一.控制面板→程序和功能→打开或不关闭Window功能→选择选项 二.控制面板→管理工具→Internet信息服务(IIS)管理器→左侧第一个→ISAPI和CGI限制→全部选为[允许] 三 ...

  6. 【转载】MDX Step by Step 读书笔记(四) - Working with Sets (使用集合)

    1. Set  - 元组的集合,在 Set 中的元组用逗号分开,Set 以花括号括起来,例如: { ([Product].[Category].[Accessories]), ([Product].[ ...

  7. python里有意思的文件查找glob模块

    python标准库之glob介绍 glob 文件名模式匹配,不用遍历整个目录判断每个文件是不是符合. 1.通配符 星号(*)匹配零个或多个字符 import glob for name in glob ...

  8. 总纲篇:产品结构设计指导VII(本博客指引章节)

    本章目的:搭建自己的产品结构设计知识体系与框架,从零开始设计一个完整产品. 需知远途即捷径! //作者的结构设计体系尚在搭建中,所有的文章都会定期进行一定编排修改 目录: 0)自序 1.基础篇 1)时 ...

  9. Linux常用快捷键、文件管理和查询

    有话要说 为什么要用Linux?要用Linux的原因太多,想说说不完啊.如果你说用Linux只是为了装逼,那证明你真的还很菜.不排除有装逼了因素,那也只占非常少的比例,可以忽略不计.我们反问一下,为什 ...

  10. python socket文件传输实现

    简单版 server(服务端) import socket import subprocess import struct import json import os share_dir = r'E: ...