SSIS 尝试运行官方的示例 DataCleaning.sln项目0xC0202009 at DataCleaning, Connection manager "LocalHost.Adventure...

SSIS 尝试运行官方的示例 DataCleaning.sln项目

1打开解决方案:

在Samplesdirectory 里打开目录:..Integration Services\Package Samples\DataCleaning Sample

双击打开DataCleaning.sln

我是拷贝IntegrationServices到自己的文件夹下再打开的,留着原来的程序,如果修改错了,课可以找回原来的。此时打开会有如下提示:

 

SSIS 尝试运行官方的示例 DataCleaning.sln项目

The system cannot find the path specified.(Exception from HRESULT: 0x80070003)

 

解决这个问题 需要修改DataCleaning.dtproj文件,修改DataCleaning.dtsx的路径到正确的路径再重新打开解决方案即可。

     <FullPath>….Samples\DataCleaningSample\DataCleaning\DataCleaning.dtsx</FullPath>

 

2.修改链接。

为了能再自己PC上运行,需要修改两个链接

(1)修改CreateTables.sql链接.选择CreateTables.sql右键编辑--》打开file connection manager editor,选择createtables.sql 文件

 

2010011919415361.jpg

 

2010011919444810.jpg

 

(2)修改数据库链接(记得选择save mypassword)

 

SSIS修改数据库链接(记得选择save mypassword)

 

3.按F5 运行下项目

 

发现第一步就运行出错了(红色)

2010011919455456.jpg

Output 里输出如下错误:

SSIS package "DataCleaning.dtsx" starting.

Error: 0xC0202009 at DataCleaning, Connection manager"LocalHost.AdventureWorks": An OLE DB error has occurred. Error code:0x80040E4D.

An OLE DB record is available.  Source:"Microsoft SQL Native Client" Hresult: 0x80040E4D  Description:"Login failed for user 'sa'.".

Error: 0xC00291EC at Create CustomerAddress Reference Table View, PopulateNewCustomers Input Table and Create Output Tables, Execute SQL Task: Failed toacquire connection "LocalHost.AdventureWorks". Connection may not beconfigured correctly or you may not have the right permissions on thisconnection.

Task failed: Create CustomerAddress Reference Table View, PopulateNewCustomers Input Table and Create Output Tables

Warning: 0x80019002 at DataCleaning: The Execution method succeeded, butthe number of errors raised (1) reached the maximum allowed (1); resulting infailure. This occurs when the number of errors reaches the number specified inMaximumErrorCount. Change the MaximumErrorCount or fix the errors.

SSIS package "DataCleaning.dtsx" finished: Failure.

 

是SA登录失败了,失败的原因是系统没有保存密码,虽然刚才在链接里已经设置过了,但是没有起到作用。

原因是 ProtectionLevel设置错误.默认是DontSaveSensitive.我们需要修改它到EncryptSensitiveWithPassword.(无法修改到serverstorage,因为“使用 SQL Server 数据库角色保护整个包。只有将包保存到 SQL Server msdb 数据库后,才支持此选项。在将包从 BusinessIntelligence Development Studio 保存到文件系统时,不支持此选项。”)具体操作如下:

 

鼠标在DataCleaning.dtsx右键属性打开窗口:选择EncryptSensitiveWithPassword 并且设置密码

2010011919491096.jpg

 

鼠标在DataCleaning.dtsx右键属性打开窗口:选择EncryptSensitiveWithPassword 并且设置密码

 

然后运行就成功了。(绿色)

2010011919523260.jpg

 

SSIS 运行成功后为绿色,会提示影响行数

转载于:https://www.cnblogs.com/adandelion/archive/2010/01/19/1651795.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值