dbTalk Databases Forums  

My job fails when it is scheduled???

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


Discuss My job fails when it is scheduled??? in the microsoft.public.sqlserver.dts forum.



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

Default My job fails when it is scheduled??? - 08-08-2006 , 09:06 AM






Hey folks,

Why does my job fail when it is scheduled, but works perfectly when run
manually?

I've even changed the owner to 'dbo', and tried scheduling it as 'sa'?

But it still doesn't work?

Help.....


Reply With Quote
  #2  
Old   
StuartGMilton
 
Posts: n/a

Default Re: My job fails when it is scheduled??? - 08-08-2006 , 09:11 AM






This is the errors?

Executed as user: ABZAPPS603\SYSTEM. ...art:
DTSStep_DTSExecuteSQLTask_2
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_2
DTSRun OnStart: Copy Data from BABids to [MRS].[DBO].[BABids] Step
DTSRun OnError: Copy Data from BABids to [MRS].[DBO].[BABids] Step,
Error = -2147467259 (80004005)
Error string: Error opening datafile: Access is denied.
Error source: Microsoft Data Transformation Services Flat File Rowset
Provider
Help file: DTSFFile.hlp
Help context: 0
Error Detail Records:
Error: 5 (5); Provider Error: 5 (5)
Error string: Error opening datafile: Access is denied.
Error source: Microsoft Data Transformation Services Flat File Rowset
Provider
Help file: DTSFFile.hlp Help context: 0
DTSRun OnFinish: Copy Data from BABids to [MRS].[DBO].[BABids] Step
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_1
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_1
DTSRun OnStart: DTSStep_DTSExecuteSQLTa...
Process Exit Code 1. The step failed.


Reply With Quote
  #3  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: My job fails when it is scheduled??? - 08-08-2006 , 09:33 AM



You have the error:
Error string: Error opening datafile: Access is denied.
so it's a permissions issue.
When you can run it from your PC manually, it means it
executes fine from your PC and under your security context.
When it runs as a job, it executes from the server and under
the security context of SQL Agent (if job is owned by a
sysadmin) or the proxy account (if job is owned by a
non-sysadmin). So you need to check the permissions for the
service account for SQL Agent to make sure it has access to
the file you are importing. If the file is located on a
network location, the service account needs to be a domain
account to access network resources.
Take a look at the following Knowledge Base article for more
info:
INF: How to Run a DTS Package as a Scheduled Job
http://support.microsoft.com/?id=269074

-Sue

On 8 Aug 2006 07:11:32 -0700, "StuartGMilton"
<stuart.milton (AT) pragma (DOT) co.uk> wrote:

Quote:
This is the errors?

Executed as user: ABZAPPS603\SYSTEM. ...art:
DTSStep_DTSExecuteSQLTask_2
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_2
DTSRun OnStart: Copy Data from BABids to [MRS].[DBO].[BABids] Step
DTSRun OnError: Copy Data from BABids to [MRS].[DBO].[BABids] Step,
Error = -2147467259 (80004005)
Error string: Error opening datafile: Access is denied.
Error source: Microsoft Data Transformation Services Flat File Rowset
Provider
Help file: DTSFFile.hlp
Help context: 0
Error Detail Records:
Error: 5 (5); Provider Error: 5 (5)
Error string: Error opening datafile: Access is denied.
Error source: Microsoft Data Transformation Services Flat File Rowset
Provider
Help file: DTSFFile.hlp Help context: 0
DTSRun OnFinish: Copy Data from BABids to [MRS].[DBO].[BABids] Step
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_1
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_1
DTSRun OnStart: DTSStep_DTSExecuteSQLTa...
Process Exit Code 1. The step failed.


Reply With Quote
  #4  
Old   
StuartGMilton
 
Posts: n/a

Default Re: My job fails when it is scheduled??? - 08-08-2006 , 09:37 AM



My DBA pal just assigned my db user some new rights, and it works.

Cheers for your reply.


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.