我在VC中用ado调用存储过程,是这样写的。
pInputUserPwd.CreateInstance("ADODB.Parameter");
pInputUserPwd->Name="MiMa";
pInputUserPwd->Type=adVarChar;???
pInputUserPwd->Size=16;????
pInputUserPwd->Direction=adParamInput;
pInputUserPwd->Value=_variant_t(userPWD);
pCmd->Parameters->Append(pInputUserPwd);
问题出在我画问号的行,如果存储过程中@MiMa是MONEY,SMALLDATETIME,BIT,型的变量这两行应该怎么写,还是去掉??我是新手还望指教