在SSIS中创建多个平面文件,以便每天从表中导出数据。 [英] Create multiple flat files in SSIS to export data from a table on a daily basis.

查看:76
本文介绍了在SSIS中创建多个平面文件,以便每天从表中导出数据。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想每天将数据导出到多个平面文件,只会将数据从表格推送到逗号分隔符中的平面文件。 />


此外,创建的文件必须命名为Test_Load_DDMMYY。



因此如果月份包含30天,一个月内将创建30个文件。



我尝试过的方法:



我尝试使用OLEDB源并将数据推送到平面文件。



用于创建我所使用的相关格式的文件名表达式。



我无法每天创建多个文件。



如果我能够创建多个文件然后我只需要在作业中安排包。

Hi,

I want to export data to multiple flat files on a daily basis which will just push data from table to flat file in comma delimeter.

Also the files which are getting created will must be named as Test_Load_DDMMYY.

So there would be 30 files created in a month if the month consists of 30 days.

What I have tried:

I tried using OLEDB source and pushed data to flat file.

For creating filename in the concerned format I used expressions.

I am unable to create multiple files on daily basis.

If I am able to create multiple files then i just need to schedule the package in a job.

推荐答案

BCP输出文件名中的日期 - SQLServerCentral [ ^ ]



使用bcp实用程序(SQL Server)导入和导出批量数据 - SQL Server Microsoft Docs [ ^ ]


这篇关于在SSIS中创建多个平面文件,以便每天从表中导出数据。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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