Solved

SQL Server 2000 SQL Agent Job Error

Posted on 2007-03-23
6
760 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Re-appearing SQL Server Agent jobs 7 31
tools to scan a SQL server's problem 14 28
Solar Winds can't see SQL Server Express 17 38
Loops in SQL server code 4 22
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

820 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