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. 几种封装javaBean的方法

    开发框架时,经常需要使用java对象(javaBean)的属性来封装程序的数据,封装javaBean的方法有很多,比如反射,内省,以及使用工具类.下面从反射开始介绍. 1.javaBean介绍: 简介 ...

  2. python-------打印与字符串格式化

    print python中每次执行print时都会在新的一行上开始.形如:print(’xiao') print('ming') 结果为:>>>xiao >>>mi ...

  3. Asp.net的生命周期应用之IHttpHandler

    摘自:http://www.cnblogs.com/JimmyZhang/archive/2007/09/15/894124.html Framework提供了一系列的接口和类,允许你对于Http请求 ...

  4. OI中一些常见实用的套路【更新中】

    数据结构 在维护树上路径时,如果只是点的独立的加减,可以考虑用括号序来维护(拆成两部分) 需要求树上很多路径中k近/距离和 一类,考虑点分治/在点分树上解决. 子树求和可以转化为DFS序上区间求和 树 ...

  5. 踩方格 OpenJ_Bailian - 4103

    有一个方格矩阵,矩阵边界在无穷远处.我们做如下假设:a.    每走一步时,只能从当前方格移动一格,走到某个相邻的方格上:b.    走过的格子立即塌陷无法再走第二次:c.    只能向北.东.西三个 ...

  6. MNIST手写数字识别 Tensorflow实现

    def conv2d(x, W): return tf.nn.conv2d(x, W, strides=[1, 1, 1, 1], padding='SAME') 1. strides在官方定义中是一 ...

  7. springcloud(七)-Feign声明式REST调用

    前言 前面我们使用的RestTemplate实现REST API调用,代码大致如下: public User findById(@PathVariable Long id) { return rest ...

  8. 服务器端控件同html控件的区别

    ●ASP.NET中共有几种类型的控件? 三种:1-asp.net控件(动态) 2-标准的html控件(静态) 3-标准的html控件加runat="server"属性(动态) 动态 ...

  9. 学习GO第一天,自我感觉可麻利的开干了-GO语言配置、开发、服务器部署

    学习GO第一天,自我感觉可麻利的开干了-GO语言配置.开发.服务器部署 第一步下载 go sdk https://golang.org/dl/ https://storage.googleapis.c ...

  10. LeetCode-13. Roman to Integer(罗马数字转阿拉伯数字)

    1.题目描述 Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range f ...