为什么我的 SSIS 包中的连接不断丢失?
我有一个非常简单的 SSIS 包,我可以从 Oracle 中的视图中获取数据,使用脚本组件对其进行最低限度的转换,然后将其加载到 SQL Server 2008 中的表中。
我的数据库源和数据库目标组件都已成功与其连接今天早些时候各自的数据库。
现在,在 BIDS (VS 2008) 中调试时出现以下错误。
数据流任务:ADO NET 目标无法获取连接 {046C4CA9-2BBF-46FD-9FEA-06F1B173BB35}。连接可能已损坏。
我通过删除连接组件并创建一个新组件,修复了 Oracle 连接中的类似问题。 ADO.NET 连接似乎更加顽固。我已将用户名和密码作为部署配置的一部分。 BIDS 通常是一个不稳定的工作环境吗?我需要可靠的连接,以便修复我创建的其他错误。预先感谢您的任何帮助。
I have a very simple SSIS package where I take data from a view in Oracle, minimally transform it with a script component, and load that into a table in SQL Server 2008.
Both my DB Source and my DB Destination components have connected successfully with their respective databases earlier today.
Now I get the following error, while debugging in BIDS (VS 2008).
Data Flow Task: ADO NET Destination has failed to acquire the connection {046C4CA9-2BBF-46FD-9FEA-06F1B173BB35}. The connection may have been corrupted.
I fixed a similar one with my Oracle connection by deleting the connection component and creating a new one. The ADO.NET connection appears to be more stubborn. I have made the User Name and Password part of my configuration for deployment. Is BIDS typically this unstable an environment to work in? I need reliable connnections so that I can fix the other bugs I've created. Thanks in advance for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
尝试对所有连接使用 OLE DB,除非您对 ADO.NET 有特定需求...不知道为什么,但它对我来说似乎总是更可靠...
Try using OLE DB for all connections unless you have a specific need for ADO.NET... not sure why, but it always seemed more reliable for me...
如果您只用 C# 或 C++ 编写自己的负载,您的情况可能会更好 - 您可能会花更多的时间编写代码,但您会花费更少的时间来追踪难以捉摸的错误和谷歌搜索解决方法。
编辑:对于那些投反对票的人,您介意解释一下您的理由吗?
You might be better off if you just write your own load in C# or C++ - you might spend slightly more time writing code, but you will spent much less time chasing elusive bugs and googling for workarounds.
Edit: to those who downvoted, would you mind explaining your reasons?
在控制流视图的数据流任务中,在属性选项卡中将延迟验证的值设置为 true。
In your DataFlow Task in control flow view set in properties tab the value for delay Validation to true.
在属性窗口中设置延迟验证 = true 对我有用
set delay validation = true in the properties window worked for me