请教ado的commandtype的问题
Set myDBConnection = myGetDBConnection ()
Set myDBCommand = Server.CreateObject ("ADODB.Command")
myDBCommand.ActiveConnection = myDBConnection
With myDBCommand
.CommandText = "{call emp_Update(?, ?, ?, ?, ?, ?)}"
.CommandType = adCmdText
.Parameters(0).Value = varMgr
.Parameters(1).Value = CInt(varSalary)
.Execute()
End With
为什么老说我-----变量未定义: 'adCmdText'----啊
我要是在前面加一项dim adCmdText
则说我:
<font color="red"ADODB.Command 错误 '800a0bb9'
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。 </font>