Hello All
Before i start with my problem description let me provide you with insight of the enviornment
Enviornment
Server : Windows Server 2008 R2
DB : SQL Server 2008 Enterprise Edition
Dll Used in Script: Shell32.dll referenced by creating Interop dll and registering it into C:\Windows\assembly
Problem
We have a script task in ssis package which unzips a zip file and places it in a folder. We had created a Interop assembly from Shell32 and are using it in our package.
When this package is run from SQL Agent Job, the package executes sucessfully without any error but does not unzip the file.
if this package is run through dtutil then the package unzips the file sucessfully.
if we run the package from msdb store by connecting to ssis service through SSMS, the package executes sucessfully and unzips the file.
The account under which SQL Agent is a Administrator account.
Now the question is why this package does not unzip when run through SQL Agent.
We tested this on a similar server which had following configuration
Enviornment
Server : Windows Server 2003
DB : SQL Server 2008 Enterprise Edition
Dll Used in Script: Shell32.dll referenced by creating Interop dll and registering it into C:\Windows\assembly
the package unzips sucessfully here even when using SQL Agent.
Spandan Buch