ADO CommandType Property
Complete Command Object Reference
The CommandType property sets or returns a CommandTypeEnum
value that defines the type of the Command object. Default is adCmdUnknown.
If you do not specify the type, ADO will need to contact the provider to determine the type of the command.
However, if you do specify the type, ADO will be able to process the command faster.
Syntax
Example
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/webdata/northwind.mdb"
set comm=Server.CreateObject("ADODB.Command")
comm.CommandText="orders"
comm.CommandType=adCmdTable
response.write(comm.CommandType)
conn.close
%>
|
CommandTypeEnum Values
| Constant |
Value |
Description |
| adCmdUnspecified |
-1 |
Does not specify the command type argument. |
| 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. |
| adCmdUnknown |
8 |
Default. Indicates that the type of command in the CommandText
property is not known. |
| adCmdFile |
256 |
Evaluates CommandText as the file name of a persistently stored
Recordset. Used with Recordset.Open or Requery only. |
| adCmdTableDirect |
512 |
Evaluates CommandText as a table name whose columns are all returned.
Used with Recordset.Open or Requery only. To use the Seek method, the
Recordset must be opened with adCmdTableDirect. This value cannot be
combined with the ExecuteOptionEnum value adAsyncExecute. |
Complete Command Object Reference
The Ektron Intranet
lets you do everything you need to do on your corporate intranet and everything you want to do... all with just one application.
What can you do with the Ektron Intranet? |

|
Navigate through content, documents, assets, colleagues and workgroups quickly and intuitively with enterprise search |

|
Communicate with friends and colleagues with forums, message boards and corporate blogging using the new Social Networking Platform |

|
Promote collaboration among coworkers in your organization through project workspaces where others can efficiently find information and work together |

|
Personalize your company profile by bookmarking and organizing favorite content, uploading assets, posting photos, blogging, and more |

|
Interact with features like tagging, flagging, wikis and ratings found in the Web 2.0 Toolbox |
 |
Author/edit content, manage navigation, menus, audit trails, workflow and approvals with the best in breed Content Management |
|
|
|
|
See why there are 20,000+ Ektron integrations worldwide. Request an
INSTANT DEMO or download a
FREE TRIAL today. |
|