ado 数据库 sql

qq_38502203 2017-12-02 12:46:35
char opensql[80] = "ALTER TABLE ";
strcat(opensql, "[");
strcat(opensql, *listName);
strcat(opensql, "]");
strcat(opensql, " ADD");
strcat(opensql, " COLUMN");
strcat(opensql, " [Birthday]");
strcat(opensql, " year");
cout << opensql << endl;


try{
m_pCon->Execute((_bstr_t)opensql, NULL, adCmdText);

}
catch (_com_error e)
{
cout << e.ErrorMessage() << endl;
}

提示idispatch error3092的错误
...全文
247 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_38502203 2017-12-02
  • 打赏
  • 举报
回复
我知道了。。。。

4,011

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 数据库
社区管理员
  • 数据库
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧