DB2 Metadata
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.
|
TablePrivileges | 3 |
GetSchema("Views") returns the list of table privileges on the server that you have access to.
|
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.
|
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.
|
Indexes | 5 |
Returns the list of indexes and their details.
|
Functions | 3 |
Returns the list of functions on the server. The following restrictions may
be specified:
|
Procedures | 4 |
Returns the list of procedures on the server. The following restrictions
may be specified:
|
Function Parameters | 4 |
Returns the list of function arguments. The following restrictions may be
specified:
|
Procedure Parameters | 5 |
Returns the list of procedure arguments. The following restrictions may be
specified:
|
PrimaryKeys | 4 |
Returns the list of primary keys on the server. The following restrictions
may be specified:
|
ForeignKeys | 6 |
Returns the list of foreign keys on the server. The following restrictions
may be specified:
|
哲学管理(学)人生, 文学艺术生活, 自动(计算机学)物理(学)工作, 生物(学)化学逆境, 历史(学)测绘(学)时间, 经济(学)数学金钱(理财), 心理(学)医学情绪, 诗词美容情感, 美学建筑(学)家园, 解构建构(分析)整合学习, 智商情商(IQ、EQ)运筹(学)生存.---Geovin Du(涂聚文)
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!