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. select子句排列顺序与聚集函数

    selcet   要返回的列或表达式 from   从中检索数据的表 where    行级过滤 group by 分组说明 having 组级过滤 order by  输出排列顺序   ASC正序排 ...

  2. [BZOJ 5323][Jxoi2018]游戏

    传送门 \(\color{green}{solution}\) 它每次感染的人是它的倍数,那么我们只需要找出那些除了自己以外在\(l\), \(r\)内没有别的数是 它的约数的数,在这里称其为关键数. ...

  3. hiho# 1398 最大权闭合子图 网络流

    题目传送门 题意:给出n个活动,m个人,请人需要花费$a[i]$的钱,举办一次活动可以赚$b[i]$的钱,但是需要固定的几个人在场,一个人只需要请一次后就必定在场,问最大收益. 思路: 下列结论来自h ...

  4. This operation is not available unless admin mode is enabled: FLUSHDB

    报错:  This operation is not available unless admin mode is enabled: FLUSHDB 参考内容: https://www.cnblogs ...

  5. ZendStudio操作技巧

    1.恢复窗口默认布局 点开菜单栏上的“windows”,出来的菜单中有个“Reset Perspective...”,点这个就行了

  6. LeetCode-2. Add Two Numbers(链表实现数字相加)

    1.题目描述 You are given two non-empty linked lists representing two non-negative integers. The digits a ...

  7. TortoiseGit学习系列之TortoiseGit基本操作拉取项目(图文详解)

    前面博客 TortoiseGit学习系列之TortoiseGit基本操作克隆项目(图文详解) TortoiseGit学习系列之TortoiseGit基本操作修改提交项目(图文详解) TortoiseG ...

  8. HttpClient使用详细教程

    Http协议的重要性相信不用我多说了,HttpClient相比传统JDK自带的URLConnection,增加了易用性和灵活性(具体区别,日后我们再讨论),它不仅是客户端发送Http请求变得容易,而且 ...

  9. nginx设置开机自启动

    每次启动nginx服务都需要到安装目录下的/sbin下面,感觉挺麻烦的. 下面介绍一下如何在Linux(CentOS)系统上,设置nginx开机自启动. 1 用脚本管理nginx服务 第一步:在/et ...

  10. Linux 操作系统常用的三种流012

    Linux 操作系统常用的三种流: 0 标准输入流 1 标准输出流 2 标准错误流 通常在写脚本启动程序,写log时候,会出现如下写法: nohup commod > log.txt 2> ...