![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am trying to run an SSIS package from SQL server agent. The package has one script task that uses an ADO connection. When running the package via Execute Package Utility there is no problem. On the SQL agent I get the error: Executed as user: COSMO\SYSTEM. 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: 9:26:09 AM Error: 2009-01-12 09:26:10.51 Code: 0x00000002 Source: Update WD Users table Description: The script threw an exception: Cannot create ActiveX component. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 9:26:09 AM Finished: 9:26:10 AM Elapsed: 0.797 seconds. The package execution failed. The step failed. Any ideas? Thanks, Snir |
#3
| |||
| |||
|
|
Does the account that runs SQL Agent and/or SSIS have the necessare permissions and rights as you. When you run the package via DTEXEC command line or DTExecUI GUI, you are executing as yourself. Check your account permissions. HTH -- Todd C [If this response was helpful, please indicate by clicking the appropriate answer at the bottom] "shnel" wrote: Hi, I am trying to run an SSIS package from SQL server agent. The package has one script task that uses an ADO connection. When running the package via Execute Package Utility there is no problem. On the SQL agent I get the error: Executed as user: COSMO\SYSTEM. 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: *9:26:09 AM *Error: 2009-01-12 09:26:10.51 * * Code: 0x00000002 * * Source: Update WD Users table * * *Description: The script threw an exception: Cannot create ActiveX component. *End Error *DTExec: The package execution returned DTSER_FAILURE (1). *Started: *9:26:09 AM *Finished: 9:26:10 AM *Elapsed: *0.797 seconds. *The package execution failed. The step failed. Any ideas? Thanks, Snir |
#4
| |||
| |||
|
|
On Jan 12, 8:09 pm, Todd C <To... (AT) discussions (DOT) microsoft.com> wrote: Does the account that runs SQL Agent and/or SSIS have the necessare permissions and rights as you. When you run the package via DTEXEC command line or DTExecUI GUI, you are executing as yourself. Check your account permissions. HTH -- Todd C [If this response was helpful, please indicate by clicking the appropriate answer at the bottom] "shnel" wrote: Hi, I am trying to run an SSIS package from SQL server agent. The package has one script task that uses an ADO connection. When running the package via Execute Package Utility there is no problem. On the SQL agent I get the error: Executed as user: COSMO\SYSTEM. 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: 9:26:09 AM Error: 2009-01-12 09:26:10.51 Code: 0x00000002 Source: Update WD Users table Description: The script threw an exception: Cannot create ActiveX component. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 9:26:09 AM Finished: 9:26:10 AM Elapsed: 0.797 seconds. The package execution failed. The step failed. Any ideas? Thanks, Snir SQL Server agent runs as LocalSystem and SSIS runs as NetworkService I can't figure out what privileges do they have exactly.I ran the package as a local system administrator that have permissions on the requires network folders. Can I define a specific job to run as a specific user? |
#5
| |||
| |||
|
|
Be definition, a Local System account cannot be given network rights, noris it aware of anything outside its own box (I think) so the problem might lay there. However, you can create a Proxy and a Credentials that work together. I think you need to create the Credentials first, then create the Proxy account that uses those Credentials. You also set up what functions said Proxy can be used for. After that, you set up your SQL Agent job to run under the security context of the Proxy. Now even if SQL Agent is running under Local System, when it executes that specific job, it will access the outside resources using the Proxy. Godd Luck. -- Todd C [If this response was helpful, please indicate by clicking the appropriate answer at the bottom] "shnel" wrote: On Jan 12, 8:09 pm, Todd C <To... (AT) discussions (DOT) microsoft.com> wrote: Does the account that runs SQL Agent and/or SSIS have the necessare permissions and rights as you. When you run the package via DTEXEC command line or DTExecUI GUI, you are executing as yourself. Check your account permissions. HTH -- Todd C [If this response was helpful, please indicate by clicking the appropriate answer at the bottom] "shnel" wrote: Hi, I am trying to run an SSIS package from SQL server agent. The package has one script task that uses an ADO connection. When running the package via Execute Package Utility there is no problem. On the SQL agent I get the error: Executed as user: COSMO\SYSTEM. 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: *9:26:09 AM *Error: 2009-01-12 09:26:10.51 * * Code: 0x00000002 * * Source: Update WD Users table * * *Description: The script threw an exception: Cannot create ActiveX component. *End Error *DTExec: The package execution returned DTSER_FAILURE (1). *Started: *9:26:09 AM *Finished: 9:26:10 AM *Elapsed: *0.797 seconds. *The package execution failed. The step failed. Any ideas? Thanks, Snir SQL Server agent runs as LocalSystem and SSIS runs as NetworkService I can't figure out what privileges do they have exactly.I ran the package as a local system administrator that have permissions on the requires network folders. Can I define a specific job to run as a specific user? |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |