![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have an export to Excel package created through SQL Server Import/Export wizard. While it works by execute it manually on SQL Server\Integration Services, it fails when schedule it to run as a job with the following errors (see end of message). Steps to reproduce: 1. Create an export to Excel package through SQL Server import/export wizard, save it on SQL Server. 2. Run the package manually from SQL Server\Integration Services\Stored Packages\MSDB (this should works) 3. Create a job to run the same package through SQL Server\Database Engine\SQL Server Agent. 4. Run this job. It should fails. If enable logging through the package, the following errors reveal. #Fields: event,computer,operator,source,sourceid,executioni d,starttime,endtime,datacode,databytes,message PackageStart,SEADSQL02,BLINELLC\svc_sqldev,FliesMa in,{D1C66248-F559-460D-AA11-7B77D2BBD630},{E5C22E84-BB25-4B96-9802-B68FC02B0422},6/13/2006 3:43:33 PM,6/13/2006 3:43:33 PM,0,0x,Beginning of package execution. OnError,SEADSQL02,BLINELLC\svc_sqldev,Message Monitor,,,6/13/2006 3:45:58 PM,6/13/2006 3:45:58 PM,-1071636471,0x,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". OnError,SEADSQL02,BLINELLC\svc_sqldev,FliesMain,,, 6/13/2006 3:45:58 PM,6/13/2006 3:45:58 PM,-1071636471,0x,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". OnError,SEADSQL02,BLINELLC\svc_sqldev,Message Monitor,,,6/13/2006 3:45:59 PM,6/13/2006 3:45:59 PM,-1073573396,0x,Failed to acquire connection "DestinationConnectionExcel". Connection may not be configured correctly or you may not have the right permissions on this connection. OnError,SEADSQL02,BLINELLC\svc_sqldev,FliesMain,,, 6/13/2006 3:45:59 PM,6/13/2006 3:45:59 PM,-1073573396,0x,Failed to acquire connection "DestinationConnectionExcel". Connection may not be configured correctly or you may not have the right permissions on this connection. PackageEnd,SEADSQL02,BLINELLC\svc_sqldev,FliesMain ,{D1C66248-F559-460D-AA11-7B77D2BBD630},{E5C22E84-BB25-4B96-9802-B68FC02B0422},6/13/2006 3:45:59 PM,6/13/2006 3:45:59 PM,1,0x,End of package execution. PackageStart,SEAWTIMOTHYL1,BLINELLC\timothyl,Flies Main,{D1C66248-F559-460D-AA11-7B77D2BBD630},{996D04B8-6C8C-4129-B7C5-45FD2F0F7C06},6/14/2006 11:18:18 AM,6/14/2006 11:18:18 AM,0,0x,Beginning of package execution. PackageStart,SEAWTIMOTHYL1,BLINELLC\timothyl,Flies Main,{D1C66248-F559-460D-AA11-7B77D2BBD630},{73B15646-C65C-4B02-B281-C0154123FD9C},6/14/2006 11:21:50 AM,6/14/2006 11:21:50 AM,0,0x,Beginning of package execution. Please note I am running all this on SQL Server 64-bit environment. I haven't test on 32-bit to see if I would have the same error. Any help would be appreciative. Thanks, -TL |
#3
| |||
| |||
|
|
If you want to run a package from a 64-bit SQL Server Agent job in 32-bit mode, select a job step type of Operating system, and enter a command line or use a batch file that invokes the 32-bit version of dtexec.exe. You can use the dtexecui.exe utility to create the command line, and then copy and paste the command line into the job step. |
![]() |
| Thread Tools | |
| Display Modes | |
| |