adandelion

诗词在线 http:/www.chinapoesy.com


诗词在线 |唐诗|宋词|元曲|诗经|离骚|乐府|现代诗歌

博客园 首页 联系 订阅 管理

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 文件

 

 

 

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

 

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

 

3.按F5 运行下项目

 

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

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 并且设置密码

 

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

 

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

 

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

posted on 2010-01-19 19:56  猪头  阅读(1847)  评论(0编辑  收藏  举报

欢迎访问诗词在线http://www.chinapoesy.com   诗词在线 |唐诗|宋词|元曲|诗经|离骚|乐府|古典诗歌|现代诗歌|古典诗词|现代诗词|诗歌可以陶冶你的情操、丰富你的生活,让你更具内涵。诗词在线打造中国最好的诗词社区!

诗词在线社区

126在线阅读网 历史书籍、文学书籍、小说。。。