So, I'd like a user to run a Legacy DTS package via xp_cmdshell. I've created a test windows account with user rights for me to experiment with. I've set up a proxy account for the DTS permission, and given permission to xp_cmdshell. The account can run the DTS by opening it and executing, and can run xp_cmdshell, for example, this returns results with no error: EXEC master.dbo.xp_cmdshell dir e:
But if I try to run the DTS via xp_cmdshell, I get errors:DECLARE @strRun varchar (255), @List_ID intset @List_ID = 999SET @strRun = 'DTSRun /S "Server_Name" /N "My_DTS_Package" /E'SELECT @strRunEXEC master.dbo.xp_cmdshell @strRunUnhelpful Error:DTSRun: Loading...DTSRun: Executing...DTSRun OnStart: DTSStep_DTSDataPumpTask_1DTSRun OnError: DTSStep_DTSDataPumpTask_1, Error = -2147467259 (80004005) Error string: Unspecified error Error source: Microsoft JET Database Engine Help file: Help context: 5000000Error Detail Records:Error: -2147467259 (80004005); Provider Error: 0 (0) Error string: Unspecified error Error source: Microsoft JET Database Engine Help file: Help context: 5000000DTSRun OnFinish: DTSStep_DTSDataPumpTask_1DTSRun: Package execution complete.NULL
Any thoughts ?