I try to read Foxpro DBF files with Microsoft SQL Server 2008 R2.
I write this query:
SELECT *
FROM OPENROWSET('MSDASQL', 'Driver=Microsoft Visual FoxPro Driver;
SourceDB=D:\DB\;
SourceType=DBF',
'SELECT * FROM MyTable')
Also I installed 'VFPOLEDB' provider to run the query. But it does not run and I got this error:
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "MSDASQL" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "(null)".
I ran this query correct before,but it does not run now,I don't know why!I Google that but it doesn't helpful.
How can I read DBF files using SQL Server 2008 R2? My DBMS are running on Windows 7 OS, and also Windows 2003 Server.
Thanks in advance, Mohsen.
Import Datawizard? Just pick your DBF file and tell it where to copy the data to - marc_s