Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
aviator11
Starting Member
4 Posts |
Posted - 2009-01-21 : 17:18:42
|
When I run a DTS package through a scheduled job in SQL Server Agent or using command line, I only get 66,788 records. But when I run the same DTS Package by right-clicking on it under DTS Packages, it runs fine and pulls about 185,000 records. Any idea how to fix it as I am tired of running it every months manually? Thanks |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-01-21 : 17:26:32
|
Is there an ending time for the job? E 12°55'05.63"N 56°04'39.26" |
|
|
aviator11
Starting Member
4 Posts |
Posted - 2009-01-21 : 17:36:12
|
No, there is no time limit for the job. Same thing also happens when I run the DTS package from command line manually. |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-01-21 : 17:37:36
|
What does the log say? E 12°55'05.63"N 56°04'39.26" |
|
|
aviator11
Starting Member
4 Posts |
Posted - 2009-01-21 : 18:00:58
|
Here is the error log.... (I am pulling data from AS/400)Executed as user: NASACT-2KS-DBT1\SQLService. DTSRun: Loading... DTSRun: Executing... DTSRun OnStart: DTSStep_DTSExecuteSQLTask_3 DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_3 DTSRun OnStart: DTSStep_DTSDynamicPropertiesTask_1 DTSRun OnFinish: DTSStep_DTSDynamicPropertiesTask_1 DTSRun OnStart: DTSStep_DTSDataPumpTask_3 DTSRun OnError: DTSStep_DTSDataPumpTask_3, Error = -2147467259 (80004005) Error string: [IBM][iSeries Access ODBC Driver][DB2 UDB]SQL0901 - SQL system error. Error source: Microsoft OLE DB Provider for ODBC Drivers Help file: Help context: 0 Error Detail Records: Error: -2147467259 (80004005); Provider Error: 901 (385) Error string: [IBM][iSeries Access ODBC Driver][DB2 UDB]SQL0901 - SQL system error. Error source: Microsoft OLE DB Provider for ODBC Drivers Help file: Help context: 0 DTSRun OnFinish: DTSStep_DTSDataPumpTask_3 DTSRun: Package execution complete. Process Exit Code 1. The step failed. |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-01-21 : 18:08:36
|
What does the DTS-package log say? E 12°55'05.63"N 56°04'39.26" |
|
|
aviator11
Starting Member
4 Posts |
Posted - 2009-01-21 : 21:02:37
|
Here is the DTS error log... (Thanks for all your help...)The execution of the following DTS Package succeeded: Package Name: Lds_Energy_Stats_Source_DetailPackage Description: Import Energy and Stats Balancing Data from LDSPackage ID: {09E67192-474F-4F01-ABA2-1A4EF1059F7D}Package Version: {4344B759-4CC0-42FE-9929-082A5C16E291}Package Execution Lineage: {75B505A4-9902-4CFC-935C-1521C2C8DA70}Executed On: NASACT-2KS-DBT1Executed By: HaniS0NAExecution Started: 1/21/2009 7:43:38 PMExecution Completed: 1/21/2009 7:45:56 PMTotal Execution Time: 138.125 secondsPackage Steps execution information:Step 'DTSStep_DTSDynamicPropertiesTask_1' succeededStep Execution Started: 1/21/2009 7:43:38 PMStep Execution Completed: 1/21/2009 7:43:38 PMTotal Step Execution Time: 0 secondsProgress count in Step: 0Step 'DTSStep_DTSExecuteSQLTask_1' was not executedStep 'DTSStep_DTSDataPumpTask_1' failedStep Error Source: Microsoft OLE DB Provider for ODBC DriversStep Error Description:[IBM][iSeries Access ODBC Driver][DB2 UDB]SQL0901 - SQL system error.Step Error code: 80004005Step Error Help File:Step Error Help Context ID:0Step Execution Started: 1/21/2009 7:43:38 PMStep Execution Completed: 1/21/2009 7:44:04 PMTotal Step Execution Time: 25.844 secondsProgress count in Step: 0Step 'DTSStep_DTSDataPumpTask_2' succeededStep Execution Started: 1/21/2009 7:43:38 PMStep Execution Completed: 1/21/2009 7:45:50 PMTotal Step Execution Time: 131.687 secondsProgress count in Step: 66788Step 'DTSStep_DTSDataPumpTask_3' failedStep Error Source: Microsoft OLE DB Provider for ODBC DriversStep Error Description:[IBM][iSeries Access ODBC Driver][DB2 UDB]SQL0901 - SQL system error.Step Error code: 80004005Step Error Help File:Step Error Help Context ID:0Step Execution Started: 1/21/2009 7:43:38 PMStep Execution Completed: 1/21/2009 7:45:56 PMTotal Step Execution Time: 137.953 secondsProgress count in Step: 0Step 'DTSStep_DTSExecuteSQLTask_3' succeededStep Execution Started: 1/21/2009 7:43:38 PMStep Execution Completed: 1/21/2009 7:43:38 PMTotal Step Execution Time: 0.015 secondsProgress count in Step: 0**************************************************************************************************** |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
|
|