AdoCommandTypeEnum() Function

<< Click to Display Table of Contents >>

Navigation:  Enums >

AdoCommandTypeEnum() Function

Previous pageReturn to chapter overviewNext page

Purpose

 

All the values of the CommandType Enum:

The type of action to be performed when SetPermissions is called.

 

Prototype

 

FUNCTION AdoCommandTypeEnum (  )  AS ARRAY

Return

ARRAY        Every row in this array has 2 values:

       The numeric value of the Enum value

       A text representation of this value

 

This array can be used to validate values, and to print a meaningful description of the values during debugging You can pass this array to the AdoEnum2Str() function to convert the value of an Enum to a string

 

Description

 

List of possible values

adCmdUnspecified -1        Does not specify the command type argument.
adCmdUnknown 8        Default. the type of command in the CommandText property is not known.
adCmdText 1        Evaluates CommandText as a textual definition of a command or stored procedure call.
adCmdTable 2        Evaluates CommandText as a table name whose columns are all returned by an internally generated SQL query.
adCmdStoredProc 4        Evaluates CommandText as a stored procedure name.
adCmdFile 256        Evaluates CommandText as the file name of a persisted Recordset.
adCmdTableDirect 512        Evaluates CommandText as a table name whose columns are all returned.        

 

See Also

Enums, AdoEnum2Str(), AdoStr2Enum()