Solved

SQL Server 2000 SQL Agent Job Error

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
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…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

772 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