Solved

Cannot exexute SSIS  package on sql 2005  from job on 64 bit server -  Class not registered

Posted on 2007-11-15
2
6,740 Views
Last Modified: 2013-11-30
Hi

I'm trying to get a SSIS package to run from a sql server agent job but it won't becase I heep getting the below error. I can run the package manually but it won't run from a job and I get the same error when I try to execute it from a DOS command too from a local directory on the server.

Eg

dtexec /F "C:\CommTrak\CTI.dtsx"

I know its somthing to do with the sql server being on a 64 bit computer but just can't work out how to make it run from a job or batch file.



==============================================
error



09/10/2007 16:38:53,NewCTimport,Error,1,SQL36,NewCTimport,NewCTImport,,Executed as user: SQL1\Administrator. ...9.00.3042.00 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  4:38:53 pm  Error: 2007-09-10 16:38:57.45     Code: 0xC0202009     Source: NewCTImport Connection manager "SourceConnectionOLEDB"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040154.  An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040154  Description: "Class not registered".  End Error  Error: 2007-09-10 16:38:57.45     Code: 0xC020801C    
Source: Data Flow Task Source - qryLenderCriteria [1]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "SourceConnectionOLEDB" failed with error code 0xC0202009.

==================================================================================================
==============================================
error
 
 
 
09/10/2007 16:38:53,NewCTimport,Error,1,SQL36,NewCTimport,NewCTImport,,Executed as user: SQL1\Administrator. ...9.00.3042.00 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  4:38:53 pm  Error: 2007-09-10 16:38:57.45     Code: 0xC0202009     Source: NewCTImport Connection manager "SourceConnectionOLEDB"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040154.  An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040154  Description: "Class not registered".  End Error  Error: 2007-09-10 16:38:57.45     Code: 0xC020801C     
Source: Data Flow Task Source - qryLenderCriteria [1]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "SourceConnectionOLEDB" failed with error code 0xC0202009.
 
==================================================================================================

Open in new window

0
Comment
Question by:edjones1
2 Comments
 
LVL 10

Assisted Solution

by:pai_prasad
pai_prasad earned 100 total points
ID: 20293975
check if downloading latest MDAC ver helps...
sounds like a component is missing
0
 

Accepted Solution

by:
edjones1 earned 0 total points
ID: 20297004

OK fixed it now.

The fix was to get the job to run on a 64 bit machine there are 2 main points to note.

1.      When designing an SSIS project you must set the RUN64BITRUNTIME  project property to FALSE, this must be done in debug mode though in VS.  
2.      You must run the Job to access the dts package via command line like this.

C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\DTExec.exe /f "C:\Commtrak\CTI.dtsx" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF  /REPORTING EW
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

I have a large data set and a SSIS package. How can I load this file in multi threading?
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

839 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