0% found this document useful (0 votes)
383 views3 pages

Datatypeenum: Constant Description Value Jet 4.0 Data Type Adarray

This document defines data types and parameter directions used in ADO. It provides a table listing 40+ data types along with their constant values and descriptions. The data types include common types like strings, dates, integers, as well as ADO-specific types. It also lists the 4 possible parameter directions for parameters in a Command object, such as input, output, and return value.

Uploaded by

VK1972
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
383 views3 pages

Datatypeenum: Constant Description Value Jet 4.0 Data Type Adarray

This document defines data types and parameter directions used in ADO. It provides a table listing 40+ data types along with their constant values and descriptions. The data types include common types like strings, dates, integers, as well as ADO-specific types. It also lists the 4 possible parameter directions for parameters in a Command object, such as input, output, and return value.

Uploaded by

VK1972
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

DataTypeEnum

Constant Description Value Jet 4.0


data
type

adArray Or'd together with another type to indicate that


the data is a safe-array of that type
(DBTYPE_ARRAY).
Not listed in the WROX Tables (2.0)

adBigInt An 8-byte signed integer (DBTYPE_I8). 20  

adBinary A binary value (DBTYPE_BYTES). 128  

adBoolean A Boolean value (DBTYPE_BOOL). 11  

adByRef Or'd together with another type to indicate that


the data is a pointer to data of the other type
(DBTYPE_BYREF).
Not listed in the WROX Tables (2.0)

Not listed in the 2.6 table

adBSTR A null-terminated character string (Unicode) 8  


(DBTYPE_BSTR).

adChapter A field which is a Child ADO RecordSet. 136  


New w/v2.0

adChar A String value (DBTYPE_STR). 129  

adCurrency A currency value (DBTYPE_CY). Currency is a 6  


fixed-point number with 4 digits to the right of
the decimal point. It is stored in an 8-byte signed
integer
scaled by 10,000.

adDate A Date value (DBTYPE_DATE). A date is stored 7  


as a Double, the whole part of which is the
number of days since December 30, 1899, and
the fractional part of which is the fraction of a
day.

adDBDate A date value (yyyymmdd) (DBTYPE_DBDATE). 133  

adDBFileTime A database file time. 137  

Not shown in ado2.6

adDBTime A time value (hhmmss) (DBTYPE_DBTIME). 134  

adDBTimeStamp A date-time stamp (yyyymmddhhmmss plus a 135  


fraction in billionths)
(DBTYPE_DBTIMESTAMP).

adDecimal An exact numeric value with a fixed precision 14  


and scale (DBTYPE_DECIMAL).

adDouble A double-precision floating point value 5  


(DBTYPE_R8).
adEmpty No value was specified (DBTYPE_EMPTY). 0  

adError A 32-bit error code (DBTYPE_ERROR). 10  

adFileTime A Dos/Win 32 file time. The number of 100 nano 64  


second intervals since Jan 1, 1601.

adGUID A globally unique identifier (GUID) 72  


(DBTYPE_GUID).

adIDispatch A pointer to an IDispatch interface on an OLE 9  


object (DBTYPE_IDISPATCH).

adInteger A 4-byte signed integer (DBTYPE_I4). 3  

adIUnknown A pointer to an IUnknown interface on an OLE 13  


object (DBTYPE_IUNKNOWN).

adLongVarBinary A long binary value (Parameter object only). 205  

adLongVarChar A long String value (Parameter object only). 201  

adLongVarWChar A long null-terminated string value (Parameter 203 Memo


object only).

adNumeric An exact numeric value with a fixed precision 131  


and scale (DBTYPE_NUMERIC).

adPropVariant A variant that is not equivalent to an Automation 138  


variant.
New w/V2.0

adSingle A single-precision floating point value 4  


(DBTYPE_R4).

adSmallInt A 2-byte signed integer (DBTYPE_I2). 2  

adTinyInt A 1-byte signed integer (DBTYPE_I1). 16  

adUnsignedBigInt An 8-byte unsigned integer (DBTYPE_UI8). 21  

adUnsignedInt A 4-byte unsigned integer (DBTYPE_UI4). 19  

adUnsignedSmallInt A 2-byte unsigned integer (DBTYPE_UI2). 18  

adUnsignedTinyInt A 1-byte unsigned integer (DBTYPE_UI1). 17  

adUserDefined A user-defined variable (DBTYPE_UDT). 132  

adVarBinary A binary value (Parameter object only). 204  

adVarChar A String value (Parameter object only). 200  

adVariant An Automation Variant (DBTYPE_VARIANT). 12  

adVarNumeric A variable width exact numeric, with a single 139  


scale value.
New w/ADO v2.0

adVarWChar A null-terminated Unicode character string 202  


(Parameter object only).
adVector Or'd together with another type to indicate that
the data is a DBVECTOR structure, as defined
by OLE DB, that contains a count of elements
and a pointer to data of the other type
(DBTYPE_VECTOR).
Not in ADO v2.0

A null-terminated Unicode character string 130 Text


Not in ADO 2.6 (DBTYPE_WSTR).
documentation
adWChar

The Direction parameter or the CreateParameter method of the Command class uses a
data type of ParamterDirectionEnum.

ParameterDirectionEnum can be one of the following

Name Type / Value Description

adParamUnknown 0 To indicate the direction of the parameter is unknown

adParamInput 1 The parameter is used as an input parameter.

adParamOutput 2 Parameter is an output parameter from the command.

adParamInputOutput 3 Parameter is both an input and an output.

adParamReturnValue 4 Parameter is a return value from the command.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy