首先我配置即席分布式查询与下面的查询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