SalilD


Hi ALL,

Getting Access Denied To FileName Error When Using the Execute Sql Task (With File Connection) into a Foreach Loop Container.

Please Note :

I have a folder containing .sql files. I have to dynamically loop through the files and send them as a File connection Folder to the Execute Sql Task.

When I run this Package I am getting the follwoing error :

[Execute SQL Task] Error: An error occurred with the following error message: "Access to the path 'C:\Projects\Fuzzy Lookup DataFlow Example\Scripts' is denied.".

Also I have logged in to the machine as Administrator and to Sql Server with sa.

Please help.

Thanks.

Regards,

Salil





Re: Getting Access Denied To FileName Error When Using the Execute Sql Task (With File Connection) into a Foreach Loop Container.

Rafael Salas


How are you executing the package . the error is clear, the account running the package has not access to the drive. Also make sure ou are passing the path and the file name to the Execute SQl task.