Advertisement

12.19.2007 at 12:11PM PST, ID: 23034371
[x]
Attachment Details

SSIS package, or other way, to export multiple tables to csv files with dynamic names.

Asked by Waterstone in SQL Server 2005

Tags: csv, export, tables, file

Hi,
I need to export multiple tables to csv files.  These tables are extracts of data created using SQL Queries for the purpose ofexporting to csv files and sent to an external service center.
I'm assuming I'll need to use an SSIS package to accomplish this.  I've exported them manually using SSIS and all works well.  I have not worked with SSIS logic beyond creating a package to export or import tables and saving the package repeated use.  Can I create an SSIS package to export all tables that begin with four digits and an _, i.e. 1234_testtable, to a csv of the same name with a .txt suffix.  

If so, what would the code look like and where would I put it.

Thanks.Start Free Trial
[+][-]12.23.2007 at 10:26PM PST, ID: 20523746

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: SQL Server 2005
Tags: csv, export, tables, file
Sign Up Now!
Solution Provided By: rscowden
Participating Experts: 1
Solution Grade: B
 
 
[+][-]12.26.2007 at 01:47PM PST, ID: 20531098

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628