to : vvyjp(喻继鹏) 应该不是,因为同样的ODBC数据源在程序中使用Mfc类或ADO等都是可以使用的,就是在SQL SERVER 7 的查询分析器中进行查询时提示如下: Server: Msg 7306, Level 16, State 2, Line 1 Could not open table 'show128_hlj' from OLE DB provider 'MSDASQL'. The specified table does not exist. [OLE/DB provider returned message: [Microsoft][ODBC Visual FoxPro Driver]File 'test.dbf' does not exist.] 天啊!到底谁能告诉为什么啊!
应该不是,因为同样的ODBC数据源在程序中使用Mfc类或ADO等都是可以使用的,就是在SQL SERVER 7 的查询分析器中进行查询时提示如下:
Server: Msg 7306, Level 16, State 2, Line 1
Could not open table 'show128_hlj' from OLE DB provider 'MSDASQL'. The specified table does not exist.
[OLE/DB provider returned message: [Microsoft][ODBC Visual FoxPro Driver]File 'test.dbf' does not exist.]
天啊!到底谁能告诉为什么啊!
不过不知道你使用非本机dbf是怎样引用的,是直接通过//server/shared
还是通过制作一个网络映射驱动器的办法。
如果不是通过网络映射驱动器,可以去试试,也许可用。
SP_ADDLINKEDSERVER
SP_ADDLINKEDSRVLOGINSELECT * FROM LINKEDSERVER.DATABSE.DBO.TABLENAME