|
|
|
Forum Guru
      
участник
Last Login: 16.05.2007 12:30
Сообщ.: 71,
Visits: 127
|
|
SET DB = CreateObject("ADODB.Connection")DB.Open=ConnectionStr SET cmdTemp=CreateObject("ADODB.command")SET cmdTemp.ActiveConnection = DBcmdTemp.CommandText="storedpr" cmdTemp.CommandType=adCmdStoredProc cmdTemp.Parameters.Append cmdTemp.CreateParameter ("p1",adVarChar,adParamInput) cmdTemp.Parameters.Append cmdTemp.CreateParameter ("p2,adLongVarChar,adParamInput) cmdTemp("p1").Value = "test insert" cmdTemp("p2").Value = "test test insert" cmdTemp.Execute DB.Close()
ADODB.Parameters : Parameter object is improperly defined Подскажите в чем дело!?!?!?!
|
|
|
|
|
Supreme Being
      
участник
Last Login: 18.12.2007 11:03
Сообщ.: 121,
Visits: 1 203
|
|
|
|
|
|
Supreme Being
      
участник
Last Login: 18.12.2007 11:03
Сообщ.: 121,
Visits: 1 203
|
|
| ADO 2.8 API Reference If you specify a variable-length data type in the Type argument, you must either pass a Size argument or set the Size property of the Parameter object before appending it to the Parameters collection; otherwise, an error occurs.
|
|
|
|
|
Forum Guru
      
участник
Last Login: 16.05.2007 12:30
Сообщ.: 71,
Visits: 127
|
|
| Size тут не причем был ему что то не нравилось имя хранимой процедуры , ничего не понимаю! Переименовал ее и все заработало!
|
|
|
|