SSIS数据迁移 [英] SSIS Data Migration

查看:83
本文介绍了SSIS数据迁移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计们!我自己Akni,我的客户在SSIS中有一个要求。

Hi Folks! Myself Akni, I have got a requirement in SSIS from my client.

以下是要求,

需要动态执行SQL文件文件夹并将每个文件的结果存储为另一个文件夹中的不同CSV文件。

Need to execute the SQL files dynamically from a folder and store the results of each files as a different CSV file in another folder.

(注意:SQL文件是Select语句,其结果不存储在任何表或视图中)。

(Note: The SQL files are the Select statements for which the results are not stored in any tables or views).

请帮我构建相同的SSIS包。

Please help me to build a SSIS package for the same.

推荐答案

你好Akni,

Hi Akni,

这需要两个步骤。但首先,从文件中加载任意SQL代码并不是很安全。

It requires two steps. But firstly, this is not very secure to load arbitrary SQL code from a file.

接下来,为了实现您所需要的,您应该使用带有SQLSourceType $源的执行SQL任务b $ b 设置为文件连接

Next, to achieve what you need regardless, you should use the Execute SQL Task with the source for SQLSourceType set to file connection

最后,将结果映射到文件目的地。

Lastly, map the result to File Destination.


这篇关于SSIS数据迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆