Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL server agent job fails Expand / Collapse
Author
Message
Posted Wednesday, April 10, 2013 2:19 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, August 1, 2014 8:41 AM
Points: 101, Visits: 437
Hi,

I have a SSIS package that picks up csv files from a shared folder on daily basis and load the data into sql database.

When I execute the package in Bids environment everythin works fine. But, when I try setting up an schedule for the package, then the job fails.

I assume my SQL account doesnt have permissions to access the folder. how am I suppose to ensure that the sql account has required permissions to access the folder?

Thanks!
Post #1440695
Posted Wednesday, April 10, 2013 7:34 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, August 29, 2014 12:18 PM
Points: 2,818, Visits: 2,561
Are you using the SQL Agent to schedule the package? What error does it return?
Post #1440806
Posted Thursday, April 11, 2013 7:33 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, August 27, 2014 6:58 AM
Points: 147, Visits: 653
Getting a package to work as well as a job as it does in BIDS is one of the most common and frustrating challenges SSIS developers experience. Often, a job (which calls a package) will just hang and there is limited information given in the job's history log.

What I have found is atomizing everything helps. Split up every individual operation into its own script task and make sure your log table (if you have one) indicates where you are before the job hangs.

Good luck--the SQL Agent has sure taken me down some difficult roads.

Post #1441248
Posted Friday, April 12, 2013 1:33 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 7:34 AM
Points: 7,098, Visits: 12,606
This KB article covers a lot of the most common reasons for the problem you are describing. I pass it along quite often:

SSIS package does not run when called from a SQL Server Agent job step


__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1441889
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse