Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SSIS to export data in flat file

Posted on 2012-03-27
1
Medium Priority
?
1,011 Views
Last Modified: 2012-04-10
Hi All,
1. While exporting data in a flat file I am looking for an  example to add column header, footer, number of records  using ssis 2008.
2. Is it possible to see if file already exists and rename it before writing a new file?
3. Delete any files extracted older than 30 days
4. I also need to package and schedule for automatic execution . How one can do it thru ssis deployment?

Thanks
0
Comment
Question by:crazywolf2010
1 Comment
 
LVL 21

Accepted Solution

by:
Jason Yousef, MS earned 2000 total points
ID: 37774552
Hi,

1 & 2, what do you mean by exporting data in a flat file, is that means exporting TO flat file or importing from flat file?

I'll assume you mean exporting to flat file,  explain more about what you need? because you could rename your columns headers to whatever you want.

or you mean a custom header? if a custom header, see this link http://agilebi.com/jwelch/2008/02/08/adding-headers-and-footers-to-flat-files/


3-use that link and change the hours to 30 days, http://asqlb.blogspot.com/2011/08/ssis-process-files-that-has-been.html

4-to schedule a c package you'll use sql server agent, check that link http://decipherinfosys.wordpress.com/2008/09/17/scheduling-ssis-packages-with-sql-server-agent/

let me know which step you need more help with
Regards,
Jason
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question