ຄວາມຜົນງານ ADO CommandType

ການອະທິບາຍແລະການນໍາໃຊ້

ຄວາມຜົນງານ CommandType ສາມາດກະຕຸ້ມຫຼືກັບຄືນຄວາມຜົນງານ CommandTypeEnum ຄູ່ມູນຄວາມຄິດວ່າຈະຕັດສິນລະບົບຂອງເຄື່ອງມື Command. ຄາດການເປັນ adCmdUnknown.

If you do not specify this type, ADO will need to contact the provider to determine the command type. If you define this type, ADO will be able to process this command faster.

Syntax

objcommand.CommandType

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
%>