
InternetUnicodeHTMLCSSScalable Vector Graphics (SVG)Extensible Markup Language (xml)ASPxDocument Object Model (DOM)JavaScript FileSystemObject Component (FSO) ActiveX Data Objects Component (ADO)
`-=[]โจโฉ\;',./~!@#$%^&*()_+{}|:"<>? ๐๐๐๐๐๐๐โ๐๐๐๐๐๐๐๐๐๐๐ ๐ก๐ข๐ฃ๐ค๐ฅ๐ฆ๐ง
ร
โโโรโโ
โยฑโ๊๏นฆโโ โฏ ๐ธ๐นโ๐ป๐ผ๐ฝ๐พโ๐๐๐๐๐โ๐โโโ๐๐๐๐๐๐๐โค๐ด๐ต๐ถ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐พ๐ฟ๐๐๐๐๐๐
๐๐๐๐๐๐๐๐
โผโฝโพโโโโโ
โโโโโโโ โก โคโฅโฆโงโจโฉโชโซ
โโโโโโ โโโโ
โโ ๐ผ๐ฝ๐พ๐ฟ๐๐๐๐๐๐
๐๐๐๐๐๐๐๐๐๐๐๐๐๐
โโโโ
โฆฐโโโโโโดโต โโโโโโโ โงโจโฉโช
โซโฌโญโฎโฏโฐโฑโฒโณ โฅโฎโฏโฐโฑ โ โฒ โณ โด โ โ สน สบ โต โถ โท
๏น ๏น ๏น ๏น ๏ธน ๏ธบ ๏ธป ๏ธผ ๏ธ ๏ธ ๏ธฟ ๏น ๏ธฝ ๏ธพ ๏น ๏น ๏ธท ๏ธธ โ โ โด โต โ โ โ โก
โโโโโคโฆโฅโงโโโโโโโฒโผโโถโบโปโฒโณ โผโฝโพโฟโโโโโโ
โโ โโโโโโโโโโโโโโโณโฅขโฅฃโฅคโฅฅโฅฆโฅงโฅจโฅฉโฅชโฅซโฅฌโฅญโฅฎโฅฏ
Draft for Information Only
Content
Connection Object
Connection ObjectThe connection object of ActiveX Data Object component can also be used to obtain the database schema information of a data source. ConnectionObject.OpenSchema MethodConnectionObect.OpenSchema method for connection object is a method used to retrieve the database schema information of a specified data source through the specified object instance from the provider. The information obtained by the ConnectionObect.OpenSchema method is a Recordset object containing the secified schema information. Syntax:Set RecordsetObjectName = ConnectionObjectName.OpenSchema(QueryType, Criteria, SchemaID); Or in VBScript. Imply Set RecordsetObjectName = ConnectionObjectName.OpenSchema(QueryType, Criteria, SchemaID) Or in JScript. Imply Set RecordsetObjectName = ConnectionObjectName.OpenSchema(QueryType, Criteria, SchemaID); Parameters:RecordsetObjectName The parameter "RecordsetObjectName" is the name assigned to the instance of the Recordset object created by the call using the ConnectionObjectName.OpenSchema method. ConnectionObjectName The parameter "ConnectionObjectName" is used to specify the name of the instance of the Connection Object related to. QueryType The parameter "QueryType" is used to specify the SchemaEnum value that represents the type of schema query to run. The possible values of parameter "QueryType " can be
Criteria The optional parameter "Criteria" is an array of query constraints used to specify the criteria for the QueryType accordingly. SchemaID The parameter "SchemaID" is only used to specify the GUID for a provider-schema query not defined by the OLE DB specification, that is the parameter is required only if QueryType is set to adSchemaProviderSpecific. Return:Recordset object The method returns a Recordset object containing the specified schema information. The Recordset will be opened as a read-only, static cursor. The columns or fields in the Recordset is specified by the QueryType. Remarks:The ConnectionObect.OpenSchema Method is used to return self-descriptive information about the data source, such as tables in the data source, columns in the tables, data types supported, in the form of a Recordset object grouped by QueryType instead of a group of properties of data source. The QueryType argument is a GUID that indicates the columns or schemas returned according to the full list of schemas in the OLE DB specification. The Criteria argument is used to limit the results of a schema query by specifying an array of values that must occur in a corresponding subset of columns, called constraint columns, in the resulting Recordset. The constant adSchemaProviderSpecific is used for the QueryType argument if the provider defines its own nonstandard schema queries not listed on the full list of schemas in the OLE DB specification. When adSchemaProviderSpecific is used, the SchemaID argument is required to pass the GUID of the schema query to execute. If QueryType is set to adSchemaProviderSpecific but SchemaID is not provided, an error will result. Providers are not required to support all the OLE DB standard schema queries. Specifically, only adSchemaTables, adSchemaColumns, and adSchemaProviderTypes are required by the OLE DB specification. However, the provider is not required to support the Criteria constraints listed earlier for those schema queries. The OpenSchema method is not available on a client-side Connection object used for Remote Data Service Usage. In Visual Basic, columns that have a four-byte unsigned integer (DBTYPE UI4) in the Recordset returned from the OpenSchema method on the Connection object cannot be compared to other variables. In Visual C/C++, When not using client-side cursors, retrieving the "ORDINAL_POSITION" of a column schema in ADO returns a variant of type VT_R8 in MDAC 2.7, MDAC 2.8, and Windows Data Access Components (Windows DAC) 6.0, while the type used in MDAC 2.6 was VT_I4. Programs written for MDAC 2.6 that only look for a variant returned of type VT_I4 would get a zero for every ordinal if run under MDAC 2.7, MDAC 2.8, and Windows DAC 6.0 without modification. This change was made because the data type that OLE DB returns is DBTYPE_UI4, and in the signed VT_I4 type there is not enough room to contain all possible values without possibly truncation occurring and thereby causing a loss of data. Examples:
ยฉsideway ID: 131000023 Last Updated: 10/23/2013 Revision: 0 Ref: References
Latest Updated Links
Nu Html Checker 53 na |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 9 Culture Chinese 1097 English 339 Travel 38 Reference 79 Hardware 55 Computer Hardware 259 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 290 Unicode 504 HTML 66 CSS 65 Selector 1 SVG 46 ASP.NET 270 OS 447 MS Windows DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 207 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2026 Sideway . All rights reserved Disclaimers last modified on 06 September 2019