Solved

SQL Server 2000 SQL Agent Job Error

Posted on 2007-03-23
6
761 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

739 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