Solved

SQL Server 2000 SQL Agent Job Error

Posted on 2007-03-23
6
754 Views
Last Modified: 2013-11-30
I have a SQL Agent Job in SQL Server 2000 that uses a DTS Package to import information from an ORACLE source.  This is a direct import with no special transformations.  I have this job scheduled to run every day however after 3 days of flawless execution, I began to have failures being reported from the execution of the job.  Inside the SQL Server Agent 'Job History' window for this job the following is displayed:

"Executed as user: <defineduser>. ...OnStart:  DTSStep_DTSExecuteSQLTask_1   DTSRun OnFinish:  DTSStep_DTSExecuteSQLTask_1   DTSRun OnStart:  DTSStep_DTSDataPumpTask_1   DTSRun OnStart:  DTSStep_DTSDataPumpTask_3   DTSRun OnStart:  DTSStep_DTSDataPumpTask_2   DTSRun OnStart:  DTSStep_DTSDataPumpTask_4   DTSRun OnProgress:  DTSStep_DTSDataPumpTask_1; 1 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 1   DTSRun OnFinish:  DTSStep_DTSDataPumpTask_1   DTSRun OnProgress:  DTSStep_DTSDataPumpTask_4; 1000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 1000   DTSRun OnProgress:  DTSStep_DTSDataPumpTask_4; 2000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 2000   DTSRun OnProgress:  DTSStep_DTSDataPumpTask_4; 3000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 3000   DTSRun OnProgress:  DTSStep_DTSDataPumpTask_4; 4000 Rows have been transformed or copied.; Perc...  Process Exit Code 2.  The step failed."

I'm not sure why I am receiving this error; I have plenty of space on the drive so space shouldn't be an issue.  Unfortunately my import is imcomplete because the package/job won't complete.   Any ideas?
0
Comment
Question by:irishm20
  • 4
  • 2
6 Comments
 
LVL 16

Expert Comment

by:rboyd56
ID: 18781188
Go to the steps of the job and edit the step. On the advaned tab enter a location for a log file. Run the job again. Teh log file will hopefully have more information about the failure.
0
 
LVL 16

Expert Comment

by:rboyd56
ID: 18781193
Do this under the Properties of the job in Enterprise Manager under Management - SQL Server Agent -Jobs
0
 

Author Comment

by:irishm20
ID: 18781650
Here is the error that is in the log file... (there are many more like this on records after this one):

Error:  -2147217871 (80040E31); Provider Error:  0 (0)

   Error string:  [Microsoft][ODBC SQL Server Driver]Timeout expired

   Error source:  Microsoft OLE DB Provider for ODBC Drivers

   Help file:  

   Help context:  0

Any ideas?


0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 16

Accepted Solution

by:
rboyd56 earned 125 total points
ID: 18782310
Looks like an ODBC timeout.

Can you re-engineer the package to use the Microsoft OLEDB driver for the connection to SQL Server? You might see a better result from it and better performance. The OLEDB driver has less overhead than the ODBC driver.
0
 

Author Comment

by:irishm20
ID: 18782601
We have a winner!   Thanks rboyd56, that seemed to have done the trick.  I'll be making the adjustments to all of my connections.
0
 
LVL 16

Expert Comment

by:rboyd56
ID: 18782614
You're welcome
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

911 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now