[英]Dynamic file name for Bulk Insert Task in SSIS
I am using bulk insert task in SSIS to transfer Csv file to database table. 我在SSIS中使用批量插入任务将Csv文件传输到数据库表。 it is perfectly working fine for fixed file name.
对于固定文件名,它工作得很好。 But I need to source file name be passed via my .net application.
但是我需要通过.net应用程序传递源文件名。
Below is the screenshot of the same. 下面是相同的屏幕截图。 Now I am getting with complication error package "connection element is not found" error showing.
现在,我收到了显示错误消息的复杂错误包“未找到连接元素”错误。
Am I doing this right? 我这样做对吗?
The DestinationConnection
property is for the connection to where the data will be loaded and BatchSize
specifies how many rows are in each batch. DestinationConnection
属性用于将数据加载到的连接,并且BatchSize
指定每个批处理中有多少行。 To use a parameter for the source file name, add the parameter (or variable) as the expression for the ConnectionString
property of the Flat File Connection Manager that's being used. 要将参数用作源文件名,请将参数(或变量)添加为所使用的平面文件连接管理器的
ConnectionString
属性的表达式。 This can be found by clicking the ellipsis on the Expressions field of the Properties window for the connection manager and selecting the ConnectionString
property. 这可以通过单击连接管理器“属性”窗口的“表达式”字段上的省略号并选择
ConnectionString
属性来找到。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.