Solved

SQL Server 2000 SQL Agent Job Error

Posted on 2007-03-23
6
753 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
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…
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.

744 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

13 Experts available now in Live!

Get 1:1 Help Now