大侠:
打算从tab表中读取seq (bigint)字段,用adorecordset open打开的时候就报错,说seq无效,请问该如何解决?多谢。
测试代码为
char sqlstr[200]="select top 1000 seq from tab";
adorecordset.open(sqlstr,
adcmdtext,adopendynamic,adolockopmistic);
while(!adorecordset.eof)
{
;
}
);
打算从tab表中读取seq (bigint)字段,用adorecordset open打开的时候就报错,说seq无效,请问该如何解决?多谢。
测试代码为
char sqlstr[200]="select top 1000 seq from tab";
adorecordset.open(sqlstr,
adcmdtext,adopendynamic,adolockopmistic);
while(!adorecordset.eof)
{
;
}
);
adcmdtext,adopendynamic,adolockopmistic)
你这样调用,好像不对吧,第二个参数应该是(IDispatch *)pConnm_pRecordset->Open(_bstr_t("select top 1000 [seq] from [tab] "), m_pConnection.GetInterfacePtr(), adOpenDynamic, adLockOptimistic, adCmdText);
adcmdtext,adopendynamic,adolockopmistic);