首先我配置即席分佈式查詢與下面的查詢SQL Server的OPENROWSET OLE DB提供程序「MSDASQL」鏈接服務器「(空)」
EXEC sp_configure 'show advanced options', 1
RECONFIGURE
GO
EXEC sp_configure 'ad hoc distributed queries', 1
RECONFIGURE
GO
SELECT * FROM
OPENROWSET('MSDASQL'
,'Driver={Microsoft Access Text Driver (.txt, .csv)};
DefaultDir=C:\CSV'
,'select * from smdr.csv') T
,當我嘗試執行上面的腳本,然後得到錯誤
OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified". Msg 7303, Level 16, State 1, Line 1 Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "(null)".
如何解決它....請指導我。謝謝
是[這](https://blogs.msdn.microsoft.com/sqlforum/2010/12/20/faq-why-can-64-bit-msdasql -access-a-csv-text-file /)有關嗎? –
這[SO問題](http://stackoverflow.com/q/5011226/243373)幫助你? –
我已經看到該鏈接,但不起作用。我的環境是win7,office 2007安裝在我的電腦中。現在告訴我如何着手解決這個問題。謝謝 – Mou