4,011
社区成员
发帖
与我相关
我的任务
分享
pRecordset->Open( _variant_t( pMsgData->m_oCondition.m_pBuf ),
pConn.GetInterfacePtr(),
adOpenStatic,
adLockOptimistic,
adCmdText );
if ( pRecordset == NULL )
{
throw( 0);
}
if ( !pRecordset->adoEOF )
{
FieldPtr pField = pRecordset->Fields->GetItem( long(0) );
_variant_t varT = pField->Value;
pMsgData->m_oResult.m_nAction = varT.intVal;
}
}
catch(_com_error e )
{
if ( m_isDebug )
{
CString strConnError;
_bstr_t bstrSource(e.Source());
_bstr_t bstrDescription(e.Description());
strConnError.Format( _T("\r\n错误: %08lx \r\n内容: %s \r\n描叙: %s \r\n来源: %s"),
e.Error(), e.ErrorMessage(), (LPCSTR)bstrSource, (LPCSTR)bstrDescription );
CFunc::WriteDebugLog( NULL, 0, 0, m_strDebugFileName, _T("错误! 打开数据库记录集, 写数据失败.") + strConnError );
}
else if(@strCMDType = '005') --若为参数
begin
update Table_Car
set strInfo = @strParamater
where strTEID = @strTEID
end