<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Reza Rad's personal blog</title>
    <link>http://www.rad.pasfu.com/</link>
    <description>My technical scripts and dairy</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.4 - http://www.s9y.org/</generator>
    <pubDate>Tue, 17 Aug 2010 22:07:42 GMT</pubDate>

    <image>
        <url>http://www.rad.pasfu.com/templates/bulletproof/img/s9y_banner_small.png</url>
        <title>RSS: Reza Rad's personal blog - My technical scripts and dairy</title>
        <link>http://www.rad.pasfu.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Output Parameter of Stored Procedure In OLE DB Command - SSIS</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/24-Output-Parameter-of-Stored-Procedure-In-OLE-DB-Command-SSIS.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/24-Output-Parameter-of-Stored-Procedure-In-OLE-DB-Command-SSIS.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=24</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=24</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt;&lt;font size=&quot;2&quot;&gt;I encounter a question today which was about using a Stored procedure inside a Data flow task, and use result of stored procedure which returned by output parameter beside other columns in Data Stream.&lt;br /&gt;&lt;br /&gt;Solution with sample:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot;&gt; &lt;/font&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/24-Output-Parameter-of-Stored-Procedure-In-OLE-DB-Command-SSIS.html#extended&quot;&gt;Continue reading &quot;Output Parameter of Stored Procedure In OLE DB Command - SSIS&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 17 Aug 2010 17:07:42 -0500</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/24-guid.html</guid>
    
</item>
<item>
    <title>How to handle Failed Rows in a Data Flow</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/23-How-to-handle-Failed-Rows-in-a-Data-Flow.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/23-How-to-handle-Failed-Rows-in-a-Data-Flow.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=23</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=23</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt;&lt;font size=&quot;2&quot;&gt;suppose this scenario:&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font size=&quot;2&quot;&gt;&lt;br /&gt;you have a source table and a destination table, you want to transfer rows from source table to destination table, so you can use simple data flow with OLE DB source and OLE DB Destination. but problem hits when destination table has few rows inside, and there is Unique Constraint in ID field of Destination table. &lt;br /&gt;in this situation your data flow will fail, because when OLE DB Destination want to insert rows in destination table, it will got Unique Constraint error and it will raise Data Flow error, and this will prevent OLE DB Destination to insert any rows in table, even rows which hasn&#039;t equivalent key in destination !&lt;br /&gt;&lt;br /&gt;So, a work around needed here to avoid failing package and only move rows which hasn&#039;t problem with unique constraint in destination table.&lt;br /&gt;&lt;br /&gt;let me explain it with a sample here...&lt;/font&gt; &lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/23-How-to-handle-Failed-Rows-in-a-Data-Flow.html#extended&quot;&gt;Continue reading &quot;How to handle Failed Rows in a Data Flow&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 16 Jul 2010 02:22:59 -0500</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/23-guid.html</guid>
    
</item>
<item>
    <title>Looping through specific files - SSIS</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/22-Looping-through-specific-files-SSIS.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/22-Looping-through-specific-files-SSIS.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=22</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=22</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt;&lt;font size=&quot;2&quot;&gt;As you may know, there is an enuerator in Foreach Loop Container which help you to loop through files, named File Foreach Enumerator. you can specify a location for searching through files and get files as enuerator in loop.&lt;br /&gt;But, there are some times which you need to loop through specific files not all of files in the directory.&lt;br /&gt;you can use MASK in file names and then just loop through match files. I want to talk about another common real world problem now. &lt;br /&gt;&lt;br /&gt;Suppose you have a table which has file names inside, and you have a directory of physical files. now you want to loop through files in directory and check if the file is in table do task1 else do task2.&lt;/font&gt; &lt;/p&gt; 
&lt;p&gt;&lt;font size=&quot;2&quot;&gt;let&#039;s go on sample, through this sample you will find how to implement 
foreach loop container for file enumerator and use execute sql task with
 precedence constraint.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;/font&gt; &lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/22-Looping-through-specific-files-SSIS.html#extended&quot;&gt;Continue reading &quot;Looping through specific files - SSIS&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 06 Jul 2010 10:31:48 -0500</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/22-guid.html</guid>
    
</item>
<item>
    <title>XML Task - Changing Style of Data - XSLT</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/21-XML-Task-Changing-Style-of-Data-XSLT.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/21-XML-Task-Changing-Style-of-Data-XSLT.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=21</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=21</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt; &lt;font size=&quot;2&quot;&gt;I wrote about Validation with XML Task in SSIS &lt;a title=&quot;XML Task - Validation Data&quot; target=&quot;_blank&quot; href=&quot;http://www.rad.pasfu.com/index.php?/archives/20-XML-Task-Validating-Data.html&quot;&gt;here &lt;/a&gt;before, now I want to write about &lt;strong&gt;XSLT &lt;/strong&gt;in this post.&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font size=&quot;2&quot;&gt;XSLT is an acronym of &lt;/font&gt;&lt;font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;&gt;&lt;font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;&gt;eXtensible Stylesheet
Language Transformation. XSLT can transform given XML document to new style.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;&gt;&lt;font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;&gt;this is very good way for reading complex XML documents where XML source has week ability to distinguish structure.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;-1&quot;&gt;&lt;font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;-1&quot;&gt;&lt;font size=&quot;2&quot;&gt;let&#039;s do a sample with XSLT in XML Task...&lt;/font&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/21-XML-Task-Changing-Style-of-Data-XSLT.html#extended&quot;&gt;Continue reading &quot;XML Task - Changing Style of Data - XSLT&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 05 Jun 2010 00:35:35 -0500</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/21-guid.html</guid>
    
</item>
<item>
    <title>XML Task - Validating Data</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/20-XML-Task-Validating-Data.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/20-XML-Task-Validating-Data.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=20</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=20</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;font size=&quot;2&quot;&gt;I decided to explain &lt;strong&gt;XML Task&lt;/strong&gt; for a while. This task has many abilities to work with XML. &lt;br /&gt;to use this Task, create a SSIS package , add a XML task ,&lt;br /&gt;double click on it, Xml Task Editor window will open.&lt;br /&gt;the most important property of XML task is : &lt;strong&gt;OperationType &lt;/strong&gt;.&lt;br /&gt;there are 6 OperationTypes in SSIS 2008:&lt;br /&gt;-Validate&lt;br /&gt;-XSLT&lt;br /&gt;-XPATH&lt;br /&gt;-Merge&lt;br /&gt;-Diff&lt;br /&gt;-Patch&lt;br /&gt;there operation types has great abilities on xml files. in this post I will talk about &lt;strong&gt;Validate &lt;/strong&gt;operation type...&lt;br /&gt;&lt;/font&gt;&lt;br /&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/20-XML-Task-Validating-Data.html#extended&quot;&gt;Continue reading &quot;XML Task - Validating Data&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 29 May 2010 13:40:31 -0500</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/20-guid.html</guid>
    
</item>
<item>
    <title>How to use Script Component as Asynchronous Transformation</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/19-How-to-use-Script-Component-as-Asynchronous-Transformation.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/19-How-to-use-Script-Component-as-Asynchronous-Transformation.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=19</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=19</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt;&lt;font size=&quot;2&quot;&gt;Suppose you have a flat file which is not delimited or fixed width or Ragged right. the structure of data is not well formed for Flat File Connection manager to read,&amp;#160;&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font size=&quot;2&quot;&gt;This is an example of data file: &lt;br /&gt;&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font size=&quot;1&quot;&gt;date&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; : 04/14/2010&lt;br /&gt;customer name&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;: John doe&lt;br /&gt;address&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; : 2014 apple st. Chicago, IT 30000&lt;br /&gt;sale order&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;: 04/15/2010&lt;br /&gt;confirmation tag&amp;#160;&amp;#160;&amp;#160; &amp;#160;: abcdefghi&lt;br /&gt;date&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; : 12/14/2010&lt;br /&gt;customer name&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;: reza rad&lt;br /&gt;address&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; : Tehran Iran&lt;br /&gt;sale order&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;: 02/15/2010&lt;br /&gt;confirmation tag&amp;#160;&amp;#160;&amp;#160; &amp;#160;: rererererere&lt;br /&gt;date&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; : 06/14/2009&lt;br /&gt;customer name&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;: Abolfazl rad goudarzi&lt;br /&gt;address&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; : Tehran Iran&lt;br /&gt;sale order&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;: 02/05/2010&lt;br /&gt;confirmation tag&amp;#160;&amp;#160;&amp;#160; &amp;#160;: fasgfsagas&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font size=&quot;2&quot;&gt;You need to fetch data and fill them in appropriate fields in a Database table.&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt; &lt;font size=&quot;2&quot;&gt;As you may know you can not use Flat File manager without any handy works to change data in appropriately manner. in fact you need a Transformation between Flat File Source and the Destination.&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font size=&quot;2&quot;&gt;But how can you do this?&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font size=&quot;2&quot;&gt;the answer is ...&lt;br /&gt;&lt;/font&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/19-How-to-use-Script-Component-as-Asynchronous-Transformation.html#extended&quot;&gt;Continue reading &quot;How to use Script Component as Asynchronous Transformation&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 16 Apr 2010 14:54:32 -0500</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/19-guid.html</guid>
    
</item>
<item>
    <title>Foreach Loop based on Variable - SSIS</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/18-Foreach-Loop-based-on-Variable-SSIS.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/18-Foreach-Loop-based-on-Variable-SSIS.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=18</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=18</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;There are lots of times that you need to set your own enumerator in foreach loop container.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;For example you want to select special sub directories based on specified conditions and then you want to loop through them. so you need to make your own enumerator. so it&#039;s better to create a variable which contains array of these values and then just loop in the items of this variable.&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;You know there are few types of enumerators that you can use in foreach loop,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;If you want to make your own enumerator based on Variable, you must choose &lt;strong&gt;Foreach From Variable Enumerator &lt;/strong&gt;.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/18-Foreach-Loop-based-on-Variable-SSIS.html#extended&quot;&gt;Continue reading &quot;Foreach Loop based on Variable - SSIS&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 23 Mar 2010 14:41:31 -0500</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/18-guid.html</guid>
    
</item>
<item>
    <title>Update image column with the physical file with SSIS</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/17-Update-image-column-with-the-physical-file-with-SSIS.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/17-Update-image-column-with-the-physical-file-with-SSIS.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=17</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=17</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;Problem:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;you have a table with 2 fields:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt; FilePath -&amp;gt; this field contains address of local image file path &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;FileImage -&amp;gt; this field contains the image exactly, type of this field is image(sql server database)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;Now you want to update FileImage field with files that are exists in exact local paths.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;can you do it with SSIS? How?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;Yes,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;Use Data Flow Task , &lt;u&gt;Import Column Transformation&lt;/u&gt; , &lt;u&gt;OLE DB Command tranformation&lt;/u&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/17-Update-image-column-with-the-physical-file-with-SSIS.html#extended&quot;&gt;Continue reading &quot;Update image column with the physical file with SSIS&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 26 Feb 2010 11:42:46 -0600</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/17-guid.html</guid>
    
</item>
<item>
    <title>Some useful Date expressions for SSIS</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/16-Some-useful-Date-expressions-for-SSIS.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/16-Some-useful-Date-expressions-for-SSIS.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=16</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=16</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;I engaged in creating some date expressions yesterday, these expressions are very common needed. So I bring them here to share.&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;Suppose your Date Field name is FillDt ,&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;1- &lt;u&gt;number of days in the quarter&lt;/u&gt; of date field.&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;&lt;span class=&quot;value&quot;&gt;For example&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;If the fillDt is &amp;quot;2002-03-04&amp;quot; the count will be 63&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;If the fillDt is &amp;quot;2002-06-20&amp;quot; the count will be 81&lt;/span&gt;&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;expression:&lt;br /&gt;&lt;/font&gt;&lt;/p&gt; 
&lt;div class=&quot;richText&quot;&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;&lt;strong&gt;DA&lt;/strong&gt;&lt;/font&gt;&lt;wbr /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;&lt;strong&gt;TEDIFF(&amp;quot;DA&lt;/strong&gt;&lt;/font&gt;&lt;wbr /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;&lt;strong&gt;Y&amp;quot;,(DT_DAT&lt;/strong&gt;&lt;/font&gt;&lt;wbr /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;&lt;strong&gt;E)(((DT_WS&lt;/strong&gt;&lt;/font&gt;&lt;wbr /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;&lt;strong&gt;TR,4)YEAR(&lt;/strong&gt;&lt;/font&gt;&lt;wbr /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;&lt;strong&gt;fillDt)) + &amp;quot;-&amp;quot; + ((DT_WSTR,2)(((DATEPART(&amp;quot;Q&lt;/strong&gt;&lt;/font&gt;&lt;wbr /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;&lt;strong&gt;UARTER&amp;quot;,fi&lt;/strong&gt;&lt;/font&gt;&lt;wbr /&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;&lt;strong&gt;llDt) - 1) * 3) + 1)) + &amp;quot;-1&amp;quot;),fillDt)&lt;/strong&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot; size=&quot;2&quot;&gt;2-&lt;/font&gt;&lt;/p&gt; 
&lt;/div&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/16-Some-useful-Date-expressions-for-SSIS.html#extended&quot;&gt;Continue reading &quot;Some useful Date expressions for SSIS&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 22 Feb 2010 10:57:02 -0600</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/16-guid.html</guid>
    
</item>
<item>
    <title>Excel to SQL Server, Dynamic Data Flow</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/15-Excel-to-SQL-Server,-Dynamic-Data-Flow.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/15-Excel-to-SQL-Server,-Dynamic-Data-Flow.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=15</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=15</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt;You need to import data from excel file to sql server table, you can do this with a simple import wizard or simple data flow task in SSIS.&lt;/p&gt;
&lt;p&gt;But there are lots of times which you want to do this data transfer dynamically. &lt;/p&gt;
&lt;p&gt;Suppose these scenarios:&lt;/p&gt;
&lt;p&gt;1- you have many excel files with same structure in a folder, you want to transfer data from these files to sql server tables. but you want to use one data flow not a separate data flow for each of them. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;2- you want to create a SSIS package that moves data from an excel file to a sql server table , but structure of data can be different in each time of running the package. first time you have an excel file that has 3 columns of data in sheet1, but second time your excel file has more than 10 columns of data.&lt;/p&gt;
&lt;p&gt;3- you have many excel files in a directory with different structures, and you want to import them all in separate tables in sql server. making a Data Flow for each of them in SSIS is very time consuming, you need to find a generic way for data flow.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/15-Excel-to-SQL-Server,-Dynamic-Data-Flow.html#extended&quot;&gt;Continue reading &quot;Excel to SQL Server, Dynamic Data Flow&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 20 Feb 2010 12:18:54 -0600</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/15-guid.html</guid>
    
</item>
<item>
    <title>PIVOT Transformation - SSIS - Complete Tutorial</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/14-PIVOT-Transformation-SSIS-Complete-Tutorial.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/14-PIVOT-Transformation-SSIS-Complete-Tutorial.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=14</wfw:comment>

    <slash:comments>11</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=14</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt;Sometimes, you need to use PIVOT in SSIS.&lt;/p&gt; 
&lt;p&gt;brief explanation of what PIVOT is from msdn is here:&lt;/p&gt; 
&lt;p&gt;&lt;em&gt;PIVOT rotates a table-valued expression by turning the unique values
from one column in the expression into multiple columns in the output,
and performs aggregations where they are required on any remaining
column values that are wanted in the final output&lt;/em&gt;&lt;/p&gt; 
&lt;p&gt; &lt;/p&gt; 
&lt;p&gt;This tutorial provides a complete pivot sample on AdventureWorks sample SQL Server database with SSIS 2008... &lt;br /&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/14-PIVOT-Transformation-SSIS-Complete-Tutorial.html#extended&quot;&gt;Continue reading &quot;PIVOT Transformation - SSIS - Complete Tutorial&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 06 Feb 2010 16:08:18 -0600</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/14-guid.html</guid>
    
</item>
<item>
    <title>Problem with comma values in Comma Delimited File</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/13-Problem-with-comma-values-in-Comma-Delimited-File.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/13-Problem-with-comma-values-in-Comma-Delimited-File.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=13</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=13</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt;&lt;font size=&quot;2&quot;&gt;Assume .csv file which columns delimited by comma ( , ) . and Texts delimited by Double Quote ( &amp;quot; ) like below:&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font size=&quot;1&quot;&gt;&amp;quot;Invoice Number&amp;quot;,&amp;quot;Invoice Status&amp;quot;,&amp;quot;Invoice Date of Service&amp;quot;,&amp;quot;Invoice Date Opened&amp;quot;,&amp;quot;Invoice Hold from printing/submission&amp;quot;,&amp;quot;Invoice Branch&amp;quot;,&amp;quot;Invoice Balances Adjustments&amp;quot;,&amp;quot;Invoice Balances Payments&amp;quot;,&amp;quot;Invoice Balances Balance&amp;quot;,&amp;quot;Patient Last Name&amp;quot;,&amp;quot;Patient First Name&amp;quot;,&amp;quot;Patient ID&amp;quot;,&amp;quot;Policy Payor Name&amp;quot;,&amp;quot;Invoice Detail Item ID&amp;quot;,&amp;quot;Invoice Detail Item Name&amp;quot;,&amp;quot;Invoice Detail Balance&amp;quot;,&amp;quot;Invoice Detail Qty&amp;quot;,&amp;quot;Invoice Detail Item Group&amp;quot;&lt;br /&gt;&amp;quot;12345&amp;quot;,&amp;quot;Open&amp;quot;,&amp;quot;3/31/2009 12:00:00 AM&amp;quot;,&amp;quot;5/26/2009 8:09:02 AM&amp;quot;,&amp;quot;False&amp;quot;,&amp;quot;Test&amp;quot;,&amp;quot;($346.23)&amp;quot;,&amp;quot;$0.00&amp;quot;,&amp;quot;$346.23&amp;quot;,&amp;quot;Smith&amp;quot;,&amp;quot;John&amp;quot;,&amp;quot;12344&amp;quot;,&amp;quot;[Patient]&amp;quot;,&amp;quot;Test-1234&amp;quot;&lt;span style=&quot;color: #ff0000;&quot;&gt;,&lt;/span&gt;&lt;strong style=&quot;color: #ff0000;&quot;&gt;&amp;quot;5&amp;quot;&amp;quot;x8&amp;quot;&amp;quot; Multi-Axis Stump Support, Therafin, 31552&amp;quot;&lt;/strong&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;,&lt;/span&gt;&amp;quot;$51.12&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;Wheelchair Accessories&amp;quot;&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt; &lt;/p&gt; 
&lt;p&gt;&lt;font size=&quot;2&quot;&gt;If you look at&lt;/font&gt; &lt;font size=&quot;1&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;5&amp;quot;&amp;quot;x8&amp;quot;&amp;quot; Multi-Axis Stump Support, Therafin, 31552&amp;quot;&lt;/span&gt; , &lt;/strong&gt;&lt;font size=&quot;2&quot;&gt;there are some ( &amp;quot; ) and ( , ) inside this value.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font size=&quot;1&quot;&gt;&lt;font size=&quot;2&quot;&gt;So, How it must be handled in SSIS Flat File Source Connection Manager?&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font size=&quot;1&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;/font&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/13-Problem-with-comma-values-in-Comma-Delimited-File.html#extended&quot;&gt;Continue reading &quot;Problem with comma values in Comma Delimited File&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 22 Jan 2010 12:00:18 -0600</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/13-guid.html</guid>
    
</item>
<item>
    <title>Hosting WCF in IIS7</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/12-Hosting-WCF-in-IIS7.html</link>
            <category>Programming</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/12-Hosting-WCF-in-IIS7.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=12</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=12</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt;If it&#039;s the first time that you want to host a WCF web site under IIS7, then you probably got this error:&lt;/p&gt; 
&lt;p&gt;HTTP Error 404.17 - Not Found&lt;/p&gt; 
&lt;p&gt;Solution: &lt;br /&gt;&lt;/p&gt; 
&lt;h3 class=&quot;r&quot;&gt; 
&lt;p&gt; &lt;/p&gt; 
&lt;/h3&gt; 
&lt;p&gt; &lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/12-Hosting-WCF-in-IIS7.html#extended&quot;&gt;Continue reading &quot;Hosting WCF in IIS7&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 11 Dec 2009 13:53:41 -0600</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/12-guid.html</guid>
    
</item>
<item>
    <title>Implement If condition in SSIS package</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/11-Implement-If-condition-in-SSIS-package.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/11-Implement-If-condition-in-SSIS-package.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=11</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=11</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt;This is common requirement , you need to implement a If condition of If then else condition in a SSIS package flow. The example below illustrated it and implemented it with &lt;em&gt;&lt;strong&gt;Precedence Constraints&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt; 
&lt;p&gt; Problem Scenario:&lt;/p&gt; 
&lt;p&gt;there is a table in sql data source , If any records exist in this table then a Data Flow must transfer this data, Else a process must start.&lt;/p&gt; 
&lt;p&gt;Solution:&lt;br /&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/11-Implement-If-condition-in-SSIS-package.html#extended&quot;&gt;Continue reading &quot;Implement If condition in SSIS package&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 19 Nov 2009 00:18:27 -0600</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/11-guid.html</guid>
    
</item>
<item>
    <title>How to work with multiple files in FTP Task</title>
    <link>http://www.rad.pasfu.com/index.php?/archives/10-How-to-work-with-multiple-files-in-FTP-Task.html</link>
            <category>SSIS</category>
    
    <comments>http://www.rad.pasfu.com/index.php?/archives/10-How-to-work-with-multiple-files-in-FTP-Task.html#comments</comments>
    <wfw:comment>http://www.rad.pasfu.com/wfwcomment.php?cid=10</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.rad.pasfu.com/rss.php?version=2.0&amp;type=comments&amp;cid=10</wfw:commentRss>
    

    <author>nospam@example.com (Reza Rad)</author>
    <content:encoded>
    &lt;p&gt;FTP Task is one of SSIS tasks for File Upload,Download or manage ftp file and folders, &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms137656.aspx&quot; target=&quot;_blank&quot;&gt;FTP Task&lt;/a&gt; &lt;/p&gt; 
&lt;p&gt;Configuration is easy and all things that must be done is that create a FTP Connection Manager and then set File Transfer configurations.
But problem is when you must do this with more than one file,
Answer is using &lt;em&gt;&lt;strong&gt;file mask&lt;/strong&gt;&lt;/em&gt; ... &lt;br /&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.rad.pasfu.com/index.php?/archives/10-How-to-work-with-multiple-files-in-FTP-Task.html#extended&quot;&gt;Continue reading &quot;How to work with multiple files in FTP Task&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 12 Nov 2009 00:14:33 -0600</pubDate>
    <guid isPermaLink="false">http://www.rad.pasfu.com/index.php?/archives/10-guid.html</guid>
    
</item>

</channel>
</rss>