Solved

DTSX package run as a SQL JOB - importing Access Data

Posted on 2013-11-06
4
504 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
  • 2
  • 2
4 Comments
 
LVL 24

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 24

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

786 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