Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSRS 2008: Problem with Excel Destination and SQL Server Agent Job (64bit)

$
0
0

Hi,

I'm developing a SSIS 2008 Package that connects to a SQL Server 2008 database to read data from table and

uses a DataFlowTask with Excel Destination that writes the the data to an Excel file.

The Package runs fine inside BIDS 2008 but fails when executed through a SQL Server Agent job.

Here's my setup for the excel connection:

Connectionstring: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\server123\folder\myexcelfile.xls;Extended Properties="EXCEL 8.0;HDR=YES";

The SQL Server Agent job step is configured as:

Type: SQL Server Integration Service package

Runas: SQLProxy

Package source: SQL Server

Execution options: "Use 32bit runtime"

Commandline: Restore the original options

/SQL "\pFolder\myPackage" /SERVER "server123"  /X86  /CHECKPOINTING OFF /REPORTING E

SQL Server Agent fails to execute the job with this message:

Executed as user: username. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.4000.0 for 32-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  13:27:58  Could not load package "\pFolder\myPackage" because of error 0xC0014062.  Description: The LoadFromSQLServer method has encountered OLE DB error code 0x80004005 (Client unable to establish connection).  The SQL statement that was issued has failed.  Source:   Started:  13:27:58  Finished: 13:27:59  Elapsed:  0.655 seconds.  The package could not be loaded.  The step failed.

The SQL Server Agent security context is member of sysadm role with permissions to full access the database and remote folders.

Any help on how to troubleshoot is greatly appreciated.

Thanks

Bodo



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>