I am getting Access Denied error ..
Openrowset is throwing error for file access as Access Denied
I tried running these 2 queries as well..
EXEC sp_configure 'show advanced options', 1
RECONFIGURE
GO
EXEC sp_configure 'ad hoc distributed queries', 1
RECONFIGURE
GO
SELECT * FROM OPENROWSET(BULK '\\MySharedFolder\\TEST\\MyFile.txt',SINGLE_CLOB) AS ExternalFile;
I am getting an error as
Cannot bulk load because the file "..." could not be opened. Operating System error code 5(Access is denied.).