2015-03-02 70 views
-2

我的目标是从Access数据库2007加载Access数据到SQL Server

我创建使用被映射到网络驱动器的访问源的SSIS包2008 R2数据库更新SQL Server中的某些字段,我共享数据库

该包在ssis中执行得很好。

我要运行调度工作,当我在SQL代理作业运行这个它得到以下

Date,Source,Severity,Step ID,Server,Job Name,Step Name,Notifications,Message,Duration,Sql Severity,Sql Message ID,Operator Emailed,Operator Net sent,Operator Paged,Retries Attempted 03/02/2015 12:48:53,test_job,Error,0,PAVAN,test_job,(Job outcome),,The job failed. The Job was invoked by User PAVAN. The last step to run was step 1 (testjob_step).,00:00:01,0,0,,,,0

03/02/2015 12:48:53,test_job,Error,1,PAVAN,test_job,testjob_step,,Executed as user: PAVAN\sys-32. Microsoft (R) SQL Server Execute Package Utility Version 10.50.1600.1 for 32-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Started: 12:48:53 PM Error: 2015-03-02 12:48:54.93 Code: 0xC0202009 Source: FirstPackage Connection manager "\RAGHU-PC\vijay\access db\weighbridge.mdb" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft Office Access Database Engine" Hresult: 0x80004005 Description: "The Microsoft Office Access database engine cannot open or write to the file '\RAGHU-PC\vijay\access db\weighbridge.mdb'. It is already opened exclusively by another user or you need permission to view and write its data.". End Error Error: 2015-03-02 12:48:54.93
Code: 0xC020801C Source: datafor sqlserver OLE DB Source [1]
Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "\RAGHU-PC\vijay\access db\weighbridge.mdb" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. End Error Error: 2015-03-02 12:48:54.93 Code: 0xC0047017 Source: datafor sqlserver SSIS.Pipeline Description: component "OLE DB Source" (1) failed validation and returned error code 0xC020801C. End Error Error: 2015-03-02 12:48:54.93 Code: 0xC004700C Source: datafor sqlserver SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2015-03-02 12:48:54.93 Code: 0xC0024107 Source: datafor sqlserver Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 12:48:53 PM Finished: 12:48:54 PM Elapsed: 0.936 seconds. The package execution failed. The step failed.,00:00:01,0,0,,,,0

+0

有可能''RAGHU-PC \ vijay \ access db \ weighbridge.mdb已被另一个用户独占打开,或者您需要权限来查看和写入其数据?'它看起来像Microsoft Office Access数据库引擎无法打开或写入文件 – billinkc 2015-03-02 16:59:31

+0

为什么这么多倒票?看起来合法的我。 – rvphx 2015-03-02 21:09:28

回答

0

除了上述的线所示的错误,确保任何人可以访问开没开它通过命令行中的快捷方式/在其中包含/不包含该快捷方式,可以专门打开它,也可以锁定该数据泵。

也只是踢和咯咯尝试运行没有人在其中的SSIS包。

另外请确保\ RAGHU-PC \ vijay \ access db \ weighbridge.mdb是执行SSIS包的服务器上的有效路径,只是这种情况不是正确的映射。

+0

我敢肯定,路径是有效的路径与它在SSIS包中执行相同的路径,而在SQL代理作业中运行相同的包它显示错误,如果我在本地采取源文件作业成功... – vijay 2015-03-03 05:39:46

+0

我想从另一个系统获取源代码,因为我使用MAP NETWORK SHARING,在运行该作业时出现上面显示的错误 – vijay 2015-03-03 05:41:57