Cannot initialize the data source object of OLE DB provider “MSDASQL” for linked server “(null)”

前端 未结 6 952
终归单人心
终归单人心 2020-12-05 08:21

Having an interesting issue. I\'m reading from an excel file on a server via an OpenRowset in Sql2005. I\'ve run the query a number of times without any problems. I\'ve just

6条回答
  •  渐次进展
    2020-12-05 09:14

    The problem comes because the Temp folder of the User under which the SQL server service is running isn't accessible under the credentials which the query is running. Try to to set the security of this temp folder with minimal restrictions. The dsn that gets created every time you run an openrowset query then can be recreated without any credentials conflict. This worked for me without any restart requirements.

提交回复
热议问题