国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > SQL Server > 正文

SQL Server Metadata

2024-08-31 00:54:42
字體:
來源:轉載
供稿:網友
SQL Server Metadata

http://www.devart.com/dotconnect/sqlserver/docs/MetaData.htmlhttps://msdn.microsoft.com/en-us/library/ms254969.aspx SQL Server Schema Collections

In this overload first parameter is name of a collection, and second parameter is the array of restrictions to be applied when querying information. These restrictions specify which subset of the collection will be returned. The restrictions can include, for example, the database name (in this case, only collection elements belonging to this database will be returned) or the mask for the name of collection elements (only the elements satisfying this mask will be returned). The quantity and description of restrictions allowed for each metadata collection are rePResented in the table here. Their number can also be obtained from the return of the GetSchema() method. If the second parameter is null/Nothing, it is ignored.GetSchema Method ReferenceThe following table provides detailed information on metadata collections that can be retrieved using the GetSchema method, and restrictions that can be applied for them. When calling the GetSchema method, you can pass all or few arguments. In the latter case, some default values are assumed, if they were not specified explicitly. The default value of database restriction is , table restriction is base table (.NET2) or table (.NET1). Some collections are not supported in older server versions. If you try ro get metadata for unsupported collection you will get exception with message "Collection not defined".

Collection NameNumber of restrictionsRemarks
Arguments2Returns list of arguments for stored procedures and functions on the server.Restrict it by database name and procedure name.
Columns3Returns list of columns, their type and some extra information.Restricted by database name, GetSchema returns columns of table "user" if it can be found in the database. The second restriction is name of a table that GetSchema method should search in. At last, you can set column name pattern as described in "Tables" collection.

DatasourceInformation0Returns information about the data source.
DataTypes0Returns information about data types supported by the data source.
ForeignKeyColumns2Returns list of columns used by foreign keys in the database.Restrict it with database name and table name.
ForeignKeys3Returns list of columns that participate in foreign keys.The first restriction for this collection is name of a database. The second restriction is table name mask. The third restriction is the key pattern.

Functions2Returns list of stored functions on the server.Restrict it by database name and function name.
IndexColumns4Returns list of indexed columns in the database, their type and some extra information.Restrict it with database name, table name, index name pattern, and column name pattern.
Indexes3Returns list of indexes and their details.The first restriction is database name The second restriction is table name. The last restriction is the index name pattern.

MetaDataCollections0Returns this list. Same as using GetSchema() method without parameters.
PrimaryKeys2Returns list of columns that participate in primary keys.The first restriction for this collection is name of a database. The second restriction is table name.

Procedures2Returns list of stored procedures on the server.Restrict it by database name and procedure name.
ReservedWords0Lists all reserved words used in the server.
Restrictions0Returns list of possible restrictions and their default values for the metadata collections.
Tables2GetSchema("Tables") returns list of tables in the current database.The first restriction for this collection is name of a database. If specified, the method returns all tables within the database. The second restriction is table name mask. You can use wildcards '%' (any number of characters) and '_' (one character) to retrieve names of tables that match the mask.

UniqueKeys2Returns list of columns that participate in unique keys.The first restriction for this collection is name of a database. The second restriction is table name.

UserPrivileges1Lists all users and their privileges on the server.When restricted by username, returns information about specific user.
Users1Lists all users on the server.When restricted by username, returns information about specific user.
ViewColumns3Returns list of columns used by views in the database.Restrict it with database name, table name and column name.
Views2GetSchema("Views") returns list of views in the current database.The first restriction for this collection is name of a database. The second restriction is view name mask.

CollectionName # NameColumns 1 TABLE_CATALOGColumns 2 TABLE_SCHEMAColumns 3 TABLE_NAMEColumns 4 COLUMN_NAMEIndexes 1 TABLE_CATALOGIndexes 2 TABLE_SCHEMAIndexes 3 INDEX_NAMEIndexes 4 TYPEIndexes 5 TABLE_NAMEProcedures 1 PROCEDURE_CATALOGProcedures 2 PROCEDURE_SCHEMAProcedures 3 PROCEDURE_NAMEProcedures 4 PROCEDURE_TYPETables 1 TABLE_CATALOGTables 2 TABLE_SCHEMATables 3 TABLE_NAMETables 4 TABLE_TYPEViews 1 TABLE_CATALOGViews 2 TABLE_SCHEMAViews 3 TABLE_NAME

集合:

MetaDataCollectionsDataSourceInformationDataTypesRestrictionsReservedWordsUsersDatabasesTablesColumnsStructuredTypeMembersViewsViewColumnsProcedureParametersProceduresForeignKeysIndexColumnsIndexesUserDefinedTypes

數據類型:

<track id="wqvn8"><tbody id="wqvn8"><small id="wqvn8"></small></tbody></track>
    <td id="wqvn8"></td>
    smallintSystem.Int1616
    intSystem.Int328
    realSystem.Single13
    floatSystem.Double6
    moneySystem.Decimal9
    smallmoneySystem.Decimal17
    bitSystem.Boolean2
    tinyintSystem.SByte20
    bigintSystem.Int640
    發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 漳州市| 宜川县| 博湖县| 灌阳县| 苏尼特左旗| 靖远县| 永济市| 辽源市| 苍南县| 张北县| 塔城市| 卫辉市| 苗栗市| 治县。| 襄汾县| 上犹县| 汾西县| 萝北县| 望城县| 波密县| 星座| 讷河市| 社旗县| 萍乡市| 朝阳市| 临猗县| 洛阳市| 准格尔旗| 大田县| 松桃| 莆田市| 开江县| 镇巴县| 延川县| 昭觉县| 遵义县| 南昌县| 西畴县| 丽水市| 乐都县| 逊克县|