dbTalk Databases Forums  

Running an SSIS package from SQL server job ajent

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Running an SSIS package from SQL server job ajent in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shnel
 
Posts: n/a

Default Running an SSIS package from SQL server job ajent - 01-12-2009 , 03:49 AM






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

Reply With Quote
  #2  
Old   
Todd C
 
Posts: n/a

Default RE: Running an SSIS package from SQL server job ajent - 01-12-2009 , 01:09 PM






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:

Quote:
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


Reply With Quote
  #3  
Old   
shnel
 
Posts: n/a

Default Re: Running an SSIS package from SQL server job ajent - 01-15-2009 , 09:38 AM



On Jan 12, 8:09*pm, Todd C <To... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
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?


Reply With Quote
  #4  
Old   
Todd C
 
Posts: n/a

Default Re: Running an SSIS package from SQL server job ajent - 01-15-2009 , 10:00 AM



Be definition, a Local System account cannot be given network rights, nor is
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:

Quote:
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?


Reply With Quote
  #5  
Old   
shnel
 
Posts: n/a

Default Re: Running an SSIS package from SQL server job ajent - 01-19-2009 , 02:30 AM



On Jan 15, 5:00*pm, Todd C <To... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
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?
Thanks a lot! The proxy definition did the job.

Snir


Reply With Quote
  #6  
Old   
Bernardo Romero
 
Posts: n/a

Default SSIS - Agent not being able to save file in network location - 06-11-2010 , 08:45 AM



Hello,
I have the same problem. I set up the credential and proxy and the Agent is perfectly able to run packages that involve processing files stored in the local server for example.

The problem is now with a package that needs to save a file on a network location. I runs fine from Visual Studio, and even from the Execute Package utility. However, the agent is not able to run it. Unfortunately the history log of the job doesn't give any hints whatsoever.

Would any of you have an idea of what's going on?

Thanks!



shnel wrote:

Re: Running an SSIS package from SQL server job ajent
20-Jan-09

is
ay
ount
n be
rity
t
e
mmand
riate
=A0 Source:
xception:
e
Finished:
ailed.

Thanks a lot! The proxy definition did the job.

Snir

Previous Posts In This Thread:

On Monday, January 12, 2009 1:09 PM
Todd wrote:

Does the account that runs SQL Agent and/or SSIS have the necessare
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:

On Wednesday, January 14, 2009 1:30 AM
shnel wrote:

Running an SSIS package from SQL server job ajent
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

On Thursday, January 15, 2009 10:00 AM
Todd wrote:

Be definition, a Local System account cannot be given network rights, nor is
Be definition, a Local System account cannot be given network rights, nor is
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 Tuesday, January 20, 2009 4:18 AM
shnel wrote:

Re: Running an SSIS package from SQL server job ajent
On Jan 12, 8:09=A0pm, Todd C <To... (AT) discussions (DOT) microsoft.com> wrote:
d
e
09
urce:
tion:
shed:
d.

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?

On Tuesday, January 20, 2009 4:18 AM
shnel wrote:

Re: Running an SSIS package from SQL server job ajent
is
ay
ount
n be
rity
t
e
mmand
riate
=A0 Source:
xception:
e
Finished:
ailed.

Thanks a lot! The proxy definition did the job.

Snir


Submitted via EggHeadCafe - Software Developer Portal of Choice
LINQ With Strings
http://www.eggheadcafe.com/tutorials...h-strings.aspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.