64,648
社区成员
发帖
与我相关
我的任务
分享
int adoExecute(const _bstr_t *CommandText, VARIANT * RecordsAffected, const long Options=adCmdText)
{
try
{
m_pConnection->Execute(*CommandText,RecordsAffected,Options);
}
catch(_com_error e)
{
char ch[100];
sprintf(ch,"执行SQL语句出错,错误编号:%s",e.ErrorMessage());
MessageBox(NULL,ch,"SQL语名出错",0);
char *tch="IDispatch error #3119";
if(!strcmp(e.ErrorMessage(),"IDispatch error #3119"))
return 3;
return 0;
}
return 1;
}