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. iphone 自学常用网址

    https://www.gitbook.com/book/numbbbbb/-the-swift-programming-language-/details https://github.com/ip ...

  2. Python内置函数查询表——总结篇

    Python3.5版本中的68个内置函数,按顺序逐个进行了自认为详细的解析,现在是时候进行个总结了.为了方便记忆,将这些内置函数进行了如下分类:     数学运算(7个)     类型转换(24个) ...

  3. SSM搭建

    SSM搭建 SSM(Spring+SpringMVC+MyBatis)框架集由Spring.SpringMVC.MyBatis三个开源框架整合而成,常作为数据源较简单的web项目的框架.. Sprin ...

  4. python --爬虫基础 --爬猫眼top 100 使用 requests 库的基本操作

    import requests import re import json import time def get_page(url): # 获取页数 headers = { 'User-Agent' ...

  5. D01——C语言基础学PYTHON

    C语言基础学习PYTHON——基础学习D01 20180705内容纲要: 1 PYTHON介绍 2 PYTHON变量定义规则 3  PYTHON文件结构 4 PYTHON语句及语法 5 字符编码 6 ...

  6. 根据域名获取ip地址gethostbyname

    #include <sys/socket.h> #include <stdio.h> #include <netdb.h> int main(int argc, c ...

  7. fd与FILE结构体

    文件描述符 fd 概念:文件描述符在形式上是一个非负整数.实际上,它是一个索引值,指向内核为每一个进程所维护的该进程打开文件的记录表.当程序打开一个现有文件或者创建一个新文件时,内核向进程返回一个文件 ...

  8. hiho#1445 重复旋律5 求子串数量 后缀自动机

    题目传送门 题意:给出一个字符串,求子串的个数. 思路:后缀自动机的题真是每做一题就更理解一些. SAM中的每一状态$p$都代表了一种子串,而p包含的字符串的个数是$len[p]-len[fa[p]] ...

  9. Android Studio 学习笔记1.1 创建自己的第一个安卓项目并且打包APK

      自从上一次安装完安卓开发工具Android Studio后抽时间看视屏尝试编写自己的第一个安卓项目约两周的时间 每天下班后会花上1~2小时的时间去学习 目前的成果如下:次元宅的我.apk 嘛 总而 ...

  10. [转] js画图开发库--mxgraph--[graphlayout-图形布局.html]

    [From] http://chwshuang.iteye.com/blog/1797740 布局变化,下方还有动画效果选项: <!Doctype html> <html xmlns ...