SSIS 尝试运行官方的示例 DataCleaning.sln项目0xC0202009 at DataCleaning, Connection manager "LocalHost.Adventure
2013-04-07 16:19
483 查看
SSIS 尝试运行官方的示例 DataCleaning.sln项目
1打开解决方案:
在Samplesdirectory 里打开目录:..Integration Services\Package Samples\DataCleaning Sample
双击打开DataCleaning.sln
我是拷贝IntegrationServices到自己的文件夹下再打开的,留着原来的程序,如果修改错了,课可以找回原来的。此时打开会有如下提示:
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)
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 并且设置密码
然后运行就成功了。(绿色)
1打开解决方案:
在Samplesdirectory 里打开目录:..Integration Services\Package Samples\DataCleaning Sample
双击打开DataCleaning.sln
我是拷贝IntegrationServices到自己的文件夹下再打开的,留着原来的程序,如果修改错了,课可以找回原来的。此时打开会有如下提示:
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)
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 并且设置密码
然后运行就成功了。(绿色)
相关文章推荐
- SSIS 尝试运行官方的示例 DataCleaning.sln项目0xC0202009 at DataCleaning, Connection manager "LocalHost.AdventureWorks": An OLE DB er
- eclipse运行android项目出现"The connection to adb is down, and a severe error has occured."的问题
- eclipse运行android项目出现"The connection to adb is down, and a severe error has occured."的问题
- 解决eclipse中运行web项目时弹出的"Port 8080 required by Tomcat v7.0 Server at localhost is already in use... "
- 现在的连接url:Connection connect = DriverManager.getConnection("jdbc:mysql://localhost:3306/test?useUnico
- Asp.net MVC 示例项目"Suteki.Shop"分析之---NHibernate
- Asp.net MVC 示例项目"Suteki.Shop"分析之---结束篇
- Android单元测试<中>(Android官方MVP架构示例项目解析)
- 尝试运行项目时出错:无法启动程序
- VS2005.NET提示"试图运行项目时出错,无法启动调试,绑定句柄无效"解决办法
- VS.NET2005 "试图运行项目时出错:无法启动调试。绑定句柄无效"解决
- 新建的web项目,运行的时候提示"访问被拒绝。"
- 微软SQLServer官方示例项目部署-数据引擎和分析服务部分
- VS2010 尝试运行项目时出错:无法启动调试
- 尝试在mac上用dotnet cli运行asp.net core示例程序
- React Native官方实例UIExplorer项目(for android)运行遇到的问题
- vs .net 2005 打开VSS项目时出现:"could not find the visual sourcesafe internet web service connection"的解决方案
- Quick cocos2dx-Lua(V3.3R1)学习笔记(9)-----搭建安卓打包环境,用官方示例anysdk生成apk运行
- Asp.net MVC 示例项目"Suteki.Shop"分析之---Controller
- Asp.net MVC 示例项目"Suteki.Shop"分析之---ViewData