ASP@Workshop 
HOME > ASPリファレンス > Command オブジェクト > CommandType

CommandType (Command オブジェクト)

object.CommandType

引数

object
Command オブジェクトの名前を指定します。

解説

実行するコマンドの種類を設定します。
定数内容
adCmdText1SQL文などのコマンド、またはストアドプロシジャ
adCmdTable2テーブル
adCmdTableDirect512テーブル
adCmdStoredProc4ストアドプロシジャ
adCmdUnknown8不明(デフォルト)
adComdFile256永続化されているRecordsetのファイル
adExecuteNoRecords行を返さないコマンド、またはストアドプロシジャ

指定しない場合、adCmdUnknown(不明)が適用されます。
CommandText プロパティと異なった指定をするとExecute メソッドがエラーになります。

使用例



関連項目

ActiveConnectionCommandTextCommandTimeoutDialectNamePreparedStateCancel
CreateParameterExecute



ASPリファレンス

Command オブジェクト
Connection オブジェクト
Error オブジェクト
Errors コレクション
Field オブジェクト
Fields コレクション
Parameter オブジェクト
Parameters コレクション
Property オブジェクト
Properties コレクション
Record オブジェクト
Recordset オブジェクト
Stream オブジェクト


Copyright (C) 2006-2008 ASP@Workshop All rights reserved.