Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 SSIS security

Author  Topic 

sls513
Starting Member

1 Post

Posted - 2009-01-21 : 16:20:09
Hi,
I wrote several SSIS packages that performed maintenance tasks. They ran great until I needed to rebuild the server from which they were executing.The 3 tasks that are giving me trouble are execute process tasks.See below.

c:\windows\system32\sc.exe \\Distcorp2 stop "SQLSERVERAGENT"
c:\windows\system32\sc.exe \\Distcorp2 stop "MSSQLSERVER"
c:\windows\psshutdown.exe \\Distcorp2 /r /e P:1:1

Error:
Microsoft (R) SQL Server Execute Package Utility
Version 9.00.3042.00 for 32-bit
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

Started: 1:34:28 PM
Error: 2009-01-21 13:39:29.29
Code: 0xC002914C
Source: Re-Boot DistCorp2 Execute Process Task
Description: The process timed out.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 1:34:28 PM
Finished: 1:39:29 PM
Elapsed: 300.734 seconds


Testing:
1. Logging into the executing server as domain admin, I can successfully execute each one of these commands from the command prompt.
2. I also can successfully execute the package from the package store.
3. I created a SQL Agent job with 3 steps, each step executing these steps in the above order. The SQLSERVERAGENT successfully stops, but the next 2 steps never execute.
4. I now believe this is security related so I gave full server access to SPWEB1\SQLServer2005SQLAgentUser$SPWEB1$MSSQLSERVER, which I believe is the agent account. Still no luck.
5. I tried using a proxy with credentials, but may not have done it correctly because it did not solve my problem.

Any help you can provide will be greatly appreciated.

peace
Constraint Violating Yak Guru

420 Posts

Posted - 2013-07-07 : 06:02:38
Any solution?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-07-08 : 01:42:46
First check if the account Agent uses has access to physical paths \\Distcorp2 etc which is used by process.
Secondly make sure that Agent is using the same account itself.
Also you didnt specify what issue you faced when using proxy. The ideal way to do this is by setting up a proxy account giving it only the required permissions to execute.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -