I try to execute (set and start) SSIS package from C# via stored procedure (SP). In one of task, I need to save data to Excel file. This task generates the following error: “Opening the file XXX for writing failed. You do not have the correct permission”.
Then, I tested this SP from SSMS.
When I’m log in as window’s user, SP and the packaged is executed successfully.
If I execute this SP (with “EXECUTE AS <windows user tested above>>”) as SQL user, the package fails with the same error as during testing from C#.
Is it possible to successfully execute above SP as SQL user?
If yes, any suggestion why it is not working in my situation? Thanks