Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Problem with DTS Schedule

Posted on 2003-03-24
Medium Priority
Last Modified: 2013-11-30
I have created 2 jobs in DTS which run fine,
But when i schedule them to run they error
with this log.

Executed as user: ORION\SYSTEM. DTSRun:  Loading...   DTSRun:  Executing...   DTSRun OnStart:  DTSStep_DTSExecuteSQLTask_1   DTSRun OnError:  DTSStep_DTSExecuteSQLTask_1, Error = -2147217833 (80040E57)      Error string:  The statement has been terminated.      Error source:  Microsoft OLE DB Provider for SQL Server      Help file:        Help context:  0      Error Detail Records:      Error:  -2147217833 (80040E57); Provider Error:  3621 (E25)      Error string:        Error source:        Help file:        Help context:  0         Error:  -2147217833 (80040E57); Provider Error:  8115 (1FB3)      Error string:        Error source:        Help file:        Help context:  0      DTSRun OnFinish:  DTSStep_DTSExecuteSQLTask_1   DTSRun:  Package execution complete.  Process Exit Code 1.  The step failed.

Any ideas ?
Question by:dark22
LVL 23

Accepted Solution

adathelad earned 50 total points
ID: 8195312
If it runs fine when you execute it manually, but fails when scheduled, this could be down to permissions. Make sure the SQL Agent account has sufficient permissions to do everything it needs to do. When you run it manually it uses your account permissions, but when scheduled it uses the SQL Agent account.
LVL 34

Expert Comment

ID: 8195495
Take a look at this--it has a little blurb in it about package owner and how the permissions work:



Author Comment

ID: 8201470
I've checked the permissions and there fine.

Maybe i'm going about this the wrong way (i've only been using SQL server for 2 weeks)

I need to produce a sales report on our intranet every 10 minutes, The data is on an informix db and if i run the querys on there its very slow.

So i've used DTS to grab the data every 10 minutes and put it in an SQL db which works fine.

so my DTS says:-

From watt_custom
WHERE apptdate = GETDATE()

select *
from watt_custom
where appt_date = today

Which all works fine when i run it but errors when i schedule it.

Is there a better way of doing this???

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Suggested Courses

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question