﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / how to execute batch of scripts by one DTS or SSIS / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 02:52:38 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: how to execute batch of scripts by one DTS or SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic1370816-146-1.aspx</link><description>I assume you have a bunch of .sql files in a folder that you want to execute. What you can do is use a foreach loop container in SSIS and get the name of file in a variable.Then inside foreach loop, place an execute sql task with SQLSourcetype as FileConnection. Configure the Connectionstring property of Connection manager of this Fileconnection to read value from variable being used in foreach loop container.If any of the script fails, package will fail.Hope this helps !!</description><pubDate>Wed, 10 Oct 2012 04:42:26 GMT</pubDate><dc:creator>Ravi Chhabria</dc:creator></item><item><title>RE: how to execute batch of scripts by one DTS or SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic1370816-146-1.aspx</link><description>Use a Foreach Loop Container in SSIS.  Your requirements are quite vague, so please try that and post again if there's anything in particular that you don't understand.John</description><pubDate>Wed, 10 Oct 2012 04:27:29 GMT</pubDate><dc:creator>John Mitchell-245523</dc:creator></item><item><title>how to execute batch of scripts by one DTS or SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic1370816-146-1.aspx</link><description>I need to know how to execute batch of scripts stored in some folder one by one through DTS or SSIS or is there is one script which execute all bunch from folder and if error occours then STOP at that POINT and SHOW ERROR WITH THAT PERTICULAR SCRIPT NAME</description><pubDate>Wed, 10 Oct 2012 04:13:00 GMT</pubDate><dc:creator>himanshuk</dc:creator></item></channel></rss>