I was wondering if there's a way to read and write to Excel/CSV files using something like:SELECT * FROMOPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=c:\file.xls;', 'SELECT * FROM [data$]')orSELECT *FROM OPENROWSET('MSDASQL', 'Driver={Microsoft Text Driver (*.txt; *.csv)}; DefaultDir=C:\;', 'SELECT * FROM data.csv')
This works on a 32 server, but not on a 64 bit server. I tried installing 64-bit MSDASQL for Windows 2003, but when I run the above code I get the errors:The OLE DB provider "Microsoft.Jet.OLEDB.4.0" has not been registered.and...Msg 7399, Level 16, State 1, Line 1The 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 1Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "(null)".
------------------------------------------------------------------------------------Any and all code contained within this post comes with a 100% money back guarantee.