Solved

DTSX package run as a SQL JOB - importing Access Data

Posted on 2013-11-06
4
515 Views
Last Modified: 2016-02-11
I have a DTSX package that runs great if I manually run. The DTSX package deletes all data from 15 tables and then reimports the data back into the 15 tables. The source is Access 2003 and it works great if double click and execute. The SQL is 20005. I only have to run this once a night for reporting.

The problem is the schedule of job. I have tried everything. I created a Proxy and I selected RUN AS this proxy. My Proxy has everything selected in ACTIVE IN THE SUBSYSTEMS and I feel I have tried all the principals as well. It keeps failing. I am not sure if its rights or if its Access related. Any help?

HERE IS MY ERROR:

The job failed.  The Job was invoked by User ServerName\Administrator.
Code: 0xC0202009     Source: FinalTest Connection manager "SourceConnectionOLEDB"     Description: SSIS Error Code DTS_E_OLEDBERROR.  
An OLE DB error has occurred. Error code: 0x80004005.  
An OLE DB record is available.  
Source: "Microsoft JET Database Engine"  
Hresult: 0x80004005  
Description: "The Microsoft Jet database engine cannot open the file '\\ServerA\Libary\Database\TheDatabase.mdb'.  
It is already opened exclusively by another user<c/> or you need permission to view its data.".  
End Error  Error: 2013-11-06 19:52:32.67    
Code: 0xC020801C     Source: Data Flow Task Source - COMPONENTS [1]    
Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  
The AcquireConnection method call to the connection manager "SourceConnectionOL...  
The package execution fa...  The step failed.,00:00:01,0,0,,,,0
0
Comment
Question by:allenkent
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 25

Expert Comment

by:chaau
ID: 39629255
What happens if you login as user "ServerName\Administrator" and try to open file \\ServerA\Libary\Database\TheDatabase.mdb? Have you tried this?
0
 

Author Comment

by:allenkent
ID: 39629278
Yes I can open the file.
0
 
LVL 25

Accepted Solution

by:
chaau earned 500 total points
ID: 39629294
You probably also need to change the security permission on this folder (\\ServerA\Libary\Database\TheDatabase.mdb) to grant access to the user that is configured to run as the SQL Server Agent account. By default, I believe it is  NT Service\SQLSERVERAGENT. You have two options:
1. Grant access to  NT Service\SQLSERVERAGENT to the file system folder
2. Modify the user that the SQL Server Agent uses to login with. This page describes how to change the account properties for the service. The page is rather big, just jump to "Changing Account Properties" section
0
 

Author Closing Comment

by:allenkent
ID: 39630896
The security portion above must be the issue but I solved it a different way.

Once I copied the database to the local machine the job worked. If I use the same database copy on a network it does not make the Access connection.

SOLUTION: Copied the Access Database to the local C before running the job
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

My client sends data in an Excel file to me to load them into Staging database. The file contains many sheets that they have same structure. In this article, I would like to share the simple way to load data of multiple sheets by using SSIS.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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