使用 Access 2010 对 SQL Server 运行传递查询。查询如下:
select da.o_acttime,ds.o_statename,dd.o_filename,dd.o_projectno from dms_audt da
inner join
dms_doc dd
on
da.o_objguid=dd.o_docguid
left join
dms_stat ds
on
ds.o_stateno=da.o_numparam2
where
da.o_action=1012
and
charindex(".xls",dd.o_filename)>0
order by o_projectno
我收到的错误消息是:
ODBC--call failed.
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name '.xls'. (#207)
我打错charindex()
了吗?