Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

SSIS Exporting all views meeting certain naming criteria

Avatar of Patrick Matthews
Patrick MatthewsFlag for United States of America asked on
Microsoft SQL ServerMicrosoft SQL Server 2005
5 Comments1 Solution1311 ViewsLast Modified:
Gang,

I am just getting started with SSIS, so if this question has too large a scope, just say so, but please be gentle :)

I have a SQL Server 2005 database that has ~25 views that must be exported to flat files on a daily basis.  All of these views have names like dbo.vw_Extract_%, and every view with such a name must be exported.

Is it possible to do something like this?
Get the set of all views meeting that naming convention
Loop through this set
At each stop in the loop, modify the data source and destination in a Data Flow task so that the source is the view and the destination is a text file named after the view

If it is possible, is it feasible to do, or am I better off simply setting up individual tasks for each view?  If it is feasible, can you point me in the right direction?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Alpesh Patel
Alpesh PatelFlag of India imageSolution Architect at TCS (SAFe®Agilist, TOGAF® Foundation, PSM I®, MCP, MCSD)

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers