June 8, 2007 at 9:01 am
I have a DTS package that I am trying to set up as a job. The DTS package executes when run adhoc but the DTS job fails.
DTSRun OnError: DTSStep_DTSDataPumpTask_1, Error = -2147467259 (80004005) Error string: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed Error source: Microsoft OLE DB Provider for ODBC Drivers Help file: Help context: 0 Error Detail Records: Error: -2147467259 (80004005); Provider Error: 0 (0) Error string: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed Error source: Microsoft OLE DB Provider for ODBC Drivers Help file: Help context: 0 DTSRun OnFinish: DTSStep_DTSDataPumpTask_1 DTSRun: Package execution complete. Process Exit Code 1. The step failed.
Any help is greatly appreciated.
Thank you.
-W R
June 8, 2007 at 10:00 am
What does the job do? What does datapump task 1 do?
June 8, 2007 at 10:18 am
datapump task 1 does a select from another server into this server select col1, col2 from table
Thank you.
-W R
June 8, 2007 at 10:38 am
W R,
Look at the package log for better error descriptions. If you haven't enabled logging in the package, open the package in DTS Designer, select 'Package Properties', the Logging tab, and check 'Log package execution to SQL Server'. Click 'OK' and save the package.
Run the job again, right-click on the package and select 'Package Logs...'.
Greg
Greg
June 8, 2007 at 11:16 am
Thank you.
Step Error Source: Microsoft OLE DB Provider for ODBC Drivers
Step Error Description:[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
Step Error code: 80004005
Step Error Help File:
Step Error Help Context ID:0
-W R
June 8, 2007 at 6:16 pm
A few questions:
"The DTS package executes when run adhoc but the DTS job fails."
When you run the DTS package adhoc (outside of a job), are you logged into the computer running SQL Server or running on different computer (your workstation) ?
"select from another server"
Is the other server Oracle ?
SQL = Scarcely Qualifies as a Language
June 11, 2007 at 7:39 am
Thanks for your reply.
I am logged on to the computer running SQL Server
The other server is Oracle. I use ODBC to get to the Oracle database.
-W R
June 13, 2007 at 4:44 am
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply