I am trying to run a simple selection of a Visual Foxpro Table, from SQL Server using the following:-
select a.*
from openrowset('MSDASQL',
'DRIVER={Microsoft Visual FoxPro Driver};
SourceDb = c:\<path>\; SourceType=DBF;',
'SELECT top 10 field1 FROM table ORDER BY 1 ') as a
The .dbf in question has been copied from it's container database and placed on a seperate server.
When trying to run the query, I get the follwing error message:
Server: Msg 7399, Level 16, State 1, Line 2
OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [Microsoft][ODBC Visual FoxPro Driver]Cannot open file c:\<path>\<database>.dbc.]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IColumnsInfo::GetColumnsInfo returned 0x80004005: ].
Can anyone help me out with this ?
select a.*
from openrowset('MSDASQL',
'DRIVER={Microsoft Visual FoxPro Driver};
SourceDb = c:\<path>\; SourceType=DBF;',
'SELECT top 10 field1 FROM table ORDER BY 1 ') as a
The .dbf in question has been copied from it's container database and placed on a seperate server.
When trying to run the query, I get the follwing error message:
Server: Msg 7399, Level 16, State 1, Line 2
OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [Microsoft][ODBC Visual FoxPro Driver]Cannot open file c:\<path>\<database>.dbc.]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IColumnsInfo::GetColumnsInfo returned 0x80004005: ].
Can anyone help me out with this ?