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. Word2Vec原理及代码

    一.Word2Vec简介 Word2Vec 是 Google 于 2013 年开源推出的一款将词表征为实数值向量的高效工具,采用的模型有CBOW(Continuous Bag-Of-Words,连续的 ...

  2. 图的最小生成树的理解和实现:Prim和Kruskal算法

    最小生成树 一个连通图的生成树是一个极小的连通子图,它含有图中所有的顶点,但只有足以构成一棵树的n-1条边.我们将构造连通网的最小代价生成树称为最小生成树(Minimum Cost Spanning ...

  3. docker版redmine安装部署

    数据库准备 docker run -d --name some-postgres -e POSTGRES_PASSWORD=secret -e POSTGRES_USER=redmine postgr ...

  4. Maven 问题笔记汇总

    Web项目通过Maven部署到Tomcat的错误. Maven环境下面多项目之间的引用 Maven 远程仓库下载慢的的解决方案 Intellij IDEA 像eclipse那样给maven添加依赖 I ...

  5. word中手动添加endnote的加载项

    用Endnote管理文献,在写作的同时插入引文,这对于写文章的朋友们来说太重要了.我今天遇到这个问题,花时间钻研了,觉得应该记录下来,相信也会方便大家.查了网上许多帖子依然不得解,可能是Word版本变 ...

  6. [Xamarin] 產生專案的AndroidManifest.xml (转帖)

    紀錄一下 Xamarin 如何開啟 AndroidManifest.xml,因為這跟權限有關係,每個Android App幾乎都要設定 每次都想Add File 去增加但是其實是不對的 工具上面不管是 ...

  7. (转)ELK原理与介绍

    原文:https://www.cnblogs.com/aresxin/p/8035137.html 为什么用到ELK: 一般我们需要进行日志分析场景:直接在日志文件中 grep.awk 就可以获得自己 ...

  8. (转)sysbench部署与参数详解

    sysbench部署 原文:https://wing324.github.io/2017/02/07/sysbench%E9%83%A8%E7%BD%B2/ sysbench作为每一个系统管理员,都应 ...

  9. dubbo接口快速测试技巧

    在分布式系统的开发中,用到了dubbo+zookeeper技术,最近遇到一个问题,产品上线后,我负责的模块出了问题,某个bean中某个字段的值一直为null,而这个bean是我调用注册在zookeep ...

  10. wap 往下拉自动加载更多数据

    var stop=true; $(window).scroll(function(){ totalheight = parseFloat($(window).height()) + parseFloa ...