Solved

SSIS - Executing SQL code modules

Posted on 2012-12-31
3
326 Views
Last Modified: 2012-12-31
I am brand new to SSIS.  I am using MS Visual Studio 2008 Professional Edition. I understand from my few exposures to it that you can set it up to execute several SQL code modules in turn, one after another (not all at the same time).  I have 7 such code files (Pass1.sql, Pass2.sql, ..., Pass7.sql).  

I created an SSIS project and in the control flow section I put in 7 instances of the Control Flow Item "Execute SQL Task".  I tied these together with Precedence constraints.  In each item I set the SQLStatementSourceType property to "FileConnection" and in the SQLStatementSource property I put the full file spec.

When I try to execute this mess SSIS tells me it can't find the source code.  Yet if I copy the entire filespec and paste it into Windows Explorer, SQL Server Mgt Studio fires up and loads my source file correctly (so I know there isn't a mistake in the file spec I put into the property).

I must be missing something.   What is it?  See attached Word Doc with 3 screen shots in it.

Thanks
DocError.docx
0
Comment
Question by:RichNH
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
Eugene Z earned 500 total points
ID: 38733432
try this example:

Execute .SQL files by using SSIS
http://sqlage.blogspot.com/2012/10/execute-sql-files-by-using-ssis.html
0
 
LVL 42

Expert Comment

by:Eugene Z
ID: 38733439
also make sure you can access to your \\shared folder\file
0
 
LVL 1

Author Closing Comment

by:RichNH
ID: 38733569
I didn't want to use a loop but your link provided me with enough that within a few minutes I figured it out.  She's executing now.   I appreciate the push in the right direction.   Thank you!!!!
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

I have a large data set and a SSIS package. How can I load this file in multi threading?
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

756 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