<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>mahajakv</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/mahajakv/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/mahajakv/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 04:10:40 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>SSIS: Transferring Data from Flat File to SQL "The column delimiter for column was not found."</title>
      <link>https://docs.microsoft.com/archive/blogs/mahajakv/ssis-transferring-data-from-flat-file-to-sql-the-column-delimiter-for-column-was-not-found</link>
      <pubDate>Wed, 11 Feb 2015 23:04:00 GMT</pubDate>
      <dc:creator><![CDATA[Mahaja]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mahajakv/2015/02/11/ssis-transferring-data-from-flat-file-to-sql-the-column-delimiter-for-column-was-not-found/</guid>
      <description><![CDATA[Transfer data from Text File to SQL Server?&nbsp; Stuck with Not so properly delimited Text File?...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;">Transfer data from Text File to SQL Server?&nbsp; Stuck with Not so properly delimited Text File? </span></p>
<p><span style="font-size: small;">Here goes the solution J</span></p>
<p><span style="font-size: small;">&nbsp;</span></p>
<p><span style="font-size: small;">I was once having a text file which I was trying to use with SSIS and transfer data to SQL.</span></p>
<p><span style="font-size: small;">The following error was stopping me from transferring the data. </span></p>
<p><span style="font-size: small;">&nbsp;</span></p>
<p><strong><span style="font-size: small;">Error 0xc0202055: Data Flow Task 1: The column delimiter for column "Last Name" was not found.</span></strong></p>
<p><strong><span style="font-size: small;">(SQL Server Import and Export Wizard)</span></strong></p>
<p><strong><span style="font-size: small;">&nbsp;</span></strong></p>
<p><strong><span style="font-size: small;">Error 0xc0202092: Data Flow Task 1: An error occurred while processing file "E:\Test.txt" on data row 2512725.</span></strong></p>
<p><strong><span style="font-size: small;">(SQL Server Import and Export Wizard) </span></strong></p>
<p><span style="text-decoration: underline;"><span style="font-size: small;">&nbsp;</span></span></p>
<p><span style="font-size: small;">Btw, the Text File Size was 1.5 GB, so no option of opening the file and Finding the Missing Delimiter.</span></p>
<p><span style="font-size: small;">Using SSIS 2012? Then you are lucky!! There is a Property called <strong>"AlwaysCheckForRowDelimiters"</strong>. We can set that to false and this will skip that row.</span></p>
<p><span style="font-size: small;">But I was using SQL 2008. What Next Now?</span></p>
<p><span style="font-size: small;">Thankfully, there is a CodePlex Component that could help us in this case.</span></p>
<p><a href="https://ssisdfs.codeplex.com/"><span style="color: #0563c1; font-size: small;">https://ssisdfs.codeplex.com/</span></a></p>
<p><span style="font-size: small;">&nbsp;</span></p>
<p><span style="font-size: small;">Download the CodePlex Component. Once done, In your BIDS/SSDT Right Click the Toolbox and Click <strong>&ldquo;Add Items&rdquo;</strong>. Under the SSIS Data Flow Items, Choose DFS 2008.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/69/44/4555.img1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-69-44/4555.img1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/69/44/4555.img1.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-69-44/4555.img1.png" alt="" border="0" /></a></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;">&nbsp;</span></p>
<p><span style="font-size: small;">Then, Under the Data Flow Task Page, Drag and Drop DFS 2008 from Source.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/69/44/2570.img2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-69-44/2570.img2.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/69/44/2570.img2.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-69-44/2570.img2.png" alt="" border="0" /></a></span></p>
<p>&nbsp;<span style="font-size: small;">Double Click on the Source. We need to select &ldquo;Treat empty Strings as Null&rdquo; option.</span></p>
<p><span style="font-size: small;">Then when we go to the Columns Tab, we can see the data and the columns properly aligned.</span></p>
<p><span style="font-size: small;">Now comes the little overhead part. This task doesn&rsquo;t create output Columns automatically. We have to create the columns manually. For this, go to the &ldquo;Advance&rdquo; Tab and then Click New-&gt;New Column. This would mean, say if you have 10 columns in the Table, then you have to manually create all the 10 columns.</span></p>
<p><span style="font-size: small;">Once the columns are created, add the Destination Component. Make sure the mappings are proper.</span></p>
<p><span style="font-size: small;">Now we are good to go! The DFS component takes care of the missing Delimiter! It solves a big issue!!</span></p>
<p><span style="font-size: small;">Happy Learning</span><br />&nbsp;&nbsp;<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
  </channel>
</rss>