将 table 名称传递给变量以将其用作 SSIS 中的目标文件名
Passing table name to a variable to use it for destination file name in SSIS
我的要求是我需要使用 SSIS 将 SQL 服务器中的多个 table 假脱机到尽可能多的 CSV。
文件名约定应如下所示:
TABLENAME_MAX(Period)_GETDATE().csv
我可以获取 getdate() 和 Max(Period),这很好。
如何将 table 名称存储到变量中,以便我可以将其用作 CSV 连接管理器的表达式。
您可以将 table 的列表存储在另一个 table 中。然后在SSIS中使用循环容器循环
例如:http://pldineshtech.blogspot.in/2012/08/loop-through-each-row-in-table-using.html
我的要求是我需要使用 SSIS 将 SQL 服务器中的多个 table 假脱机到尽可能多的 CSV。 文件名约定应如下所示:
TABLENAME_MAX(Period)_GETDATE().csv
我可以获取 getdate() 和 Max(Period),这很好。 如何将 table 名称存储到变量中,以便我可以将其用作 CSV 连接管理器的表达式。
您可以将 table 的列表存储在另一个 table 中。然后在SSIS中使用循环容器循环
例如:http://pldineshtech.blogspot.in/2012/08/loop-through-each-row-in-table-using.html