Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL 2012 OLEDB error opening file from network folder

$
0
0

Hello, we have a SQL 2012 database server that recently had a new SQL 2014 instance installed. It seems as though after the 2014 instance was installed, a query that reads data from a file on a network share fails with an OLEDB error shown after the query when the query is run from a client workstation. The same query executes correctly if run directly from the server. There is not a permission issue on the share/folder.

------------------------------------------------------------------------------------------

QUERY:

select * from openrowset(
'Microsoft.ACE.OLEDB.12.0',
'Text;Database=\\SERVERNAME\Sharename\Foldername\Subfoldername\;Hdr=Yes;IMEX=1',
'select * from [SourceFile.csv]'
)

------------------------------------------------------------------------------------------

ERROR:
OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>