<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SSIS Azure Blob Storage Task Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/category/ssis/tasks/ssis-azure-blob-storage-task/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/category/ssis/tasks/ssis-azure-blob-storage-task/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Tue, 05 Dec 2023 18:27:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.4</generator>

<image>
	<url>https://zappysys.com/blog/wp-content/uploads/2023/01/cropped-zappysys-symbol-large-32x32.png</url>
	<title>SSIS Azure Blob Storage Task Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/category/ssis/tasks/ssis-azure-blob-storage-task/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Download the Latest File from Azure Blob Storage using SSIS</title>
		<link>https://zappysys.com/blog/download-latest-file-azure-blob-storage-using-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Sat, 28 Dec 2019 06:53:57 +0000</pubDate>
				<category><![CDATA[SSIS Azure Blob Connection]]></category>
		<category><![CDATA[SSIS Azure Blob Storage Task]]></category>
		<category><![CDATA[azure]]></category>
		<category><![CDATA[blob]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[storage]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=8633</guid>

					<description><![CDATA[<p>Introduction In our previous article, we saw SSIS Azure Blob Storage task examples. Now let&#8217;s look at how to Download the Latest File from Azure Blob Storage using SSIS. Microsoft SSIS includes the Azure Blob Storage Storage Task that allows us to upload files to Azure Blob Storage, download files, creating local and remote directories an more. [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/download-latest-file-azure-blob-storage-using-ssis/">Download the Latest File from Azure Blob Storage using SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2><span id="Introduction">Introduction</span></h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/AzureStorageLogo.png"><img decoding="async" class="alignleft wp-image-6532 size-thumbnail" src="https://zappysys.com/blog/wp-content/uploads/2019/03/AzureStorageLogo-150x150.png" alt="Azure BLOB Storage" width="150" height="150" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/AzureStorageLogo-150x150.png 150w, https://zappysys.com/blog/wp-content/uploads/2019/03/AzureStorageLogo.png 225w" sizes="(max-width: 150px) 100vw, 150px" /></a></p>
<p>In our previous article, we saw <a href="https://zappysys.com/blog/ssis-azure-blob-storage-task-examples-download-upload-move-delete-files-folders/" target="_blank" rel="noopener">SSIS Azure Blob Storage task examples</a>. Now let&#8217;s look at how to Download the Latest File from Azure Blob Storage using SSIS. Microsoft SSIS includes the Azure Blob Storage Storage Task that allows us to upload files to Azure Blob Storage, download files, creating local and remote directories an more. In this article, we will show how to use the <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">SSIS Azure Blob Storage Task</a> included in ZappySys <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">SSIS PowerPack</a>.</p>
<p>In nutshell, this post will focus on how to Download the Latest File from Azure Blob Storage.</p>
<h2><span id="Prerequisite"><span id="Requirements">Prerequisite<br />
</span></span></h2>
<ol>
<li>First, you will need to have SSIS installed</li>
<li>Secondly, make sure to have SSDT</li>
<li>Download and install <a href="https://go.microsoft.com/fwlink/?LinkId=717179&amp;clcid=0x4009" target="_blank" rel="noopener">Microsoft Azure Storage Emulator</a></li>
<li>Download and install <a href="https://azure.microsoft.com/en-us/features/storage-explorer/" target="_blank" rel="noopener">Microsoft Azure Storage Explorer</a></li>
<li>Finally, do not forget to install ZappySys <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">SSIS PowerPack</a></li>
</ol>
<p><strong>NOTE:</strong> If you want to use Live account (Azure Blob Storage) then you can skip Step #3</p>
<h2><span id="What_is_Azure_Blob_Storage">What is Azure Blob Storage</span></h2>
<p>Azure Blob storage is Microsoft’s object storage solution for the cloud. you can store large amounts of unstructured data, such as text or binary data. Blob storage discloses three resources:</p>
<ul>
<li>Storage account (You can access data objects in Azure Storage through a storage account.<br />
For more information, <a href="https://docs.microsoft.com/en-us/azure/storage/common/storage-create-storage-account" target="_blank" rel="noopener">click here</a>.)</li>
<li>the containers in the account(constructs a set of blobs, it is similar to a folder in a file system.<br />
All blobs lie within a container, <strong>Note:</strong> Container name must be lowercase)</li>
<li>the blobs in a container. (Azure Storage offers three types of blobs: block blobs, append blobs, and <a href="https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-pageblob-overview" target="_blank" rel="noopener">page blobs</a>)<br />
See the below-attached diagram. It shows the relationship between these resources.<br />
<a href="https://i2.wp.com/zappysys.com/blog/wp-content/uploads/2018/04/blob1.png?ssl=1"><img loading="lazy" decoding="async" class=" wp-image-3569 alignleft" src="https://i2.wp.com/zappysys.com/blog/wp-content/uploads/2018/04/blob1.png?resize=258%2C131&amp;ssl=1" alt="" width="258" height="131" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/blob1.png 329w, https://zappysys.com/blog/wp-content/uploads/2018/04/blob1-300x152.png 300w" sizes="(max-width: 258px) 100vw, 258px" /></a>     You can also use Azure Storage Explorer on your local machine. Azure Storage Explorer is a standalone app that enables you to easily work with Azure Storage data on Windows, macOS, and Linux. You can use Blob storage to expose data publicly to the world or to store application data privately. <a href="https://docs.microsoft.com/en-us/azure/vs-azure-tools-storage-manage-with-storage-explorer#connect-to-a-storage-account-or-service" target="_blank" rel="noopener">Connect to an Azure storage account or service</a></li>
</ul>
<h2></h2>
<p>&nbsp;</p>
<h2>Getting Started</h2>
<p>In order to start, we will show several examples. ZappySys includes an <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">SSIS Azure Blob Storage task</a> that will allow you to access files/folders from Azure Blob to the Local machine, Upload files(s) to Azure Blob Storage. It will also support Delete, Rename, List, Get Property, Copy, Move, Create, Set Permission … and many more operations. Here we are showing you Download the Latest File from Azure Blob Storage.</p>
<p>You can connect to your Azure Storage Account by entering your storage account credentials. Here I am showing an example of the use of the local Azure Storage Emulator.</p>
<h2>Setup Azure Storage client tools</h2>
<ol>
<li>Once you have <a href="https://go.microsoft.com/fwlink/?LinkId=717179&amp;clcid=0x4009" target="_blank" rel="noopener">downloaded and installed a storage emulator</a> You can launch Microsoft Azure Storage Emulator from its Physical location or from the desktop or start menu shortcut.
<div id="attachment_3631" style="width: 869px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3631" class="wp-image-3631 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location.png" alt="Microsoft Azure Storage Emulator Physical Location" width="859" height="94" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location.png 859w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location-300x33.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location-768x84.png 768w" sizes="(max-width: 859px) 100vw, 859px" /></a><p id="caption-attachment-3631" class="wp-caption-text">Microsoft Azure Storage Emulator Physical Location</p></div></li>
<li>If You can see the below-attached Command Prompt screen after Emulator started. Then you can proceed to start Microsoft Azure Storage Explorer as the Azure Storage Emulator is started successfully.
<div id="attachment_3633" style="width: 710px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-screen-after-started.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3633" class="wp-image-3633 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-screen-after-started-e1552723801433.png" alt="Command Prompt Screen after Microsoft Azure Storage Emulator Started" width="700" height="237" /></a><p id="caption-attachment-3633" class="wp-caption-text">Command Prompt Screen after Microsoft Azure Storage Emulator Started</p></div></li>
<li>Now, You have to <a href="https://azure.microsoft.com/en-us/features/storage-explorer/" target="_blank" rel="noopener">download and install Microsoft Azure Storage Explorer</a> and then You can launch Microsoft Azure Storage Explorer from its Physical location or from the desktop or start menu shortcut.
<div id="attachment_3635" style="width: 837px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3635" class="wp-image-3635 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location.png" alt="Microsoft Azure Storage Explorer Physical Location" width="827" height="97" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location.png 827w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location-300x35.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location-768x90.png 768w" sizes="(max-width: 827px) 100vw, 827px" /></a><p id="caption-attachment-3635" class="wp-caption-text">Microsoft Azure Storage Explorer Physical Location</p></div></li>
</ol>
<h2>Create an Azure Blob Storage Container</h2>
<p>For Creating a Blob Container, First of all, you need to go to Microsoft Storage Explorer Window. Then you can go through like this way (Storage Accounts &#8211;&gt; (Development) &#8211;&gt; Blob Containers).</p>
<div id="attachment_3637" style="width: 556px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3637" class="wp-image-3637 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container-e1552723740747.png" alt="Microsoft Azure Storage Explorer: Create Blob Container" width="546" height="584" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container-e1552723740747.png 546w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container-e1552723740747-280x300.png 280w" sizes="(max-width: 546px) 100vw, 546px" /></a><p id="caption-attachment-3637" class="wp-caption-text">Microsoft Azure Storage Explorer: Create a Blob Container</p></div>
<p>you can also create a Virtual Directory under it. A Virtual Directory does not actually exist in Azure until you paste, drag or upload blobs into it.</p>
<div id="attachment_3638" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3638" class="wp-image-3638 size-large" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-1024x749.png" alt="Creating the new Virtual Directory under Blob Container" width="720" height="527" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-1024x749.png 1024w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-300x220.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-768x562.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container.png 1163w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-3638" class="wp-caption-text">Creating the new Virtual Directory under Blob Container</p></div>
<h2><span id="SSIS_Amazon_S3_Storage_Task_Examples">Step-By-Step to Download the Latest File from Azure Blob Storage</span></h2>
<p>Let´s start with an example. In this SSIS Azure Blob Storage Task File task example, we will download the latest file from Azure Blob Storage.</p>
<ol>
<li>First of All, Drag and Drop Azure Blob Storage Task from SSIS Toolbox and double click it to edit
<div id="attachment_3639" style="width: 613px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3639" class="wp-image-3639 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task.png" alt="Drag and Drop Azure Blob Storage Task" width="603" height="271" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task.png 603w, https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task-300x135.png 300w" sizes="(max-width: 603px) 100vw, 603px" /></a><p id="caption-attachment-3639" class="wp-caption-text">Drag and Drop Azure Blob Storage Task</p></div></li>
<li>The following options are available in Azure Blob Storage Task:
<div id="attachment_6677" style="width: 680px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-storage-task-options.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6677" class="wp-image-6677 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-storage-task-options.png" alt="Option to upload, download files in SSIS" width="670" height="616" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-storage-task-options.png 670w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-storage-task-options-300x276.png 300w" sizes="(max-width: 670px) 100vw, 670px" /></a><p id="caption-attachment-6677" class="wp-caption-text">Options to upload, download files in SSIS</p></div></li>
<li>You can also overwrite files and folder, skip all, overwrite if the source is older, overwrite if the file size is different, rename files and more:
<div id="attachment_6678" style="width: 692px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/overwrite-action-ssis-za-am-task.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6678" class="wp-image-6678 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/overwrite-action-ssis-za-am-task.png" alt="Overwrite files in SSIS" width="682" height="492" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/overwrite-action-ssis-za-am-task.png 682w, https://zappysys.com/blog/wp-content/uploads/2019/03/overwrite-action-ssis-za-am-task-300x216.png 300w" sizes="(max-width: 682px) 100vw, 682px" /></a><p id="caption-attachment-6678" class="wp-caption-text">Overwrite files in SSIS</p></div></li>
<li>Let&#8217;s select the <strong>Download Azure file(s) to local directory</strong>. Now select/add The Source path, Check Recursive Scan to get all the sub-files and subfolders and it&#8217;s files and add Target Path, This option will download files. In Path AccessMode we can use Direct to write the path directly or to use an SSIS variable.
<div id="attachment_6735" style="width: 595px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-download-files.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6735" class="wp-image-6735 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-download-files.png" alt="ssis-az-blob-aws-s3-download-files" width="585" height="522" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-download-files.png 585w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-download-files-300x268.png 300w" sizes="(max-width: 585px) 100vw, 585px" /></a><p id="caption-attachment-6735" class="wp-caption-text">SSIS Azure Blob Storage Task – Download files from Azure Blob Storage</p></div></li>
<li>Now go to Advanced Filter &amp; Sorting and configure it like below screen to download the latest file only
<div id="attachment_8629" style="width: 606px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-amazon-s3-and-azure-storage-task-filter-sorting.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-8629" class="size-full wp-image-8629" src="https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-amazon-s3-and-azure-storage-task-filter-sorting.png" alt="Storage Task configuration to download the latest file only using sorting" width="596" height="567" srcset="https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-amazon-s3-and-azure-storage-task-filter-sorting.png 596w, https://zappysys.com/blog/wp-content/uploads/2019/12/ssis-amazon-s3-and-azure-storage-task-filter-sorting-300x285.png 300w" sizes="(max-width: 596px) 100vw, 596px" /></a><p id="caption-attachment-8629" class="wp-caption-text">Storage Task configuration to download the latest file only using sorting</p></div></li>
<li>That&#8217;s it now execute the package and it will download the latest file from the Azure Blob Storage Task to Local File Machine.</li>
<li>Sometimes you may need to make advanced filtering on file path, file date, size, etc. for that refer to <a href="https://zappysys.com/blog/advanced-path-filtering-for-amazon-azure-storage-ssis-task/" target="_blank" rel="noopener">this article</a> for more details.</li>
</ol>
<h2>Conclusion</h2>
<p>To conclude, we can say that working with Azure Blob Storage is now very simple. In this article, we looked at how to Download the Latest File from Azure Blob Storage using SSIS. We used Adnavced Filtering &amp; sorting option. If you liked the tasks you can start using them by downloading SSIS PowerPack from our <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">web site here</a>.</p>
<p>Thanks for your time.</p>
<h2><span id="References">References</span></h2>
<ul>
<li><a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">About SSIS PowerPack</a></li>
<li><a href="https://docs.microsoft.com/en-us/sql/integration-services/expressions/integration-services-ssis-expressions" target="_blank" rel="noopener">Integration Services (SSIS) Expressions</a></li>
<li>Help File: <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=azure-cloud-storage-task.htm" target="_blank" rel="noopener">Azure Storage Task</a></li>
</ul>
<p>The post <a href="https://zappysys.com/blog/download-latest-file-azure-blob-storage-using-ssis/">Download the Latest File from Azure Blob Storage using SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SSIS Azure Blob Storage Task Examples (Download, Upload, Delete files / folders)</title>
		<link>https://zappysys.com/blog/ssis-azure-blob-storage-task-examples-download-upload-move-delete-files-folders/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Sat, 30 Mar 2019 09:48:44 +0000</pubDate>
				<category><![CDATA[SSIS Azure Blob Connection]]></category>
		<category><![CDATA[SSIS Azure Blob Storage Task]]></category>
		<category><![CDATA[azure]]></category>
		<category><![CDATA[blob]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[storage]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=6672</guid>

					<description><![CDATA[<p>Introduction In this article, we will show SSIS Azure Blob Storage task examples. Uploading files using Azure Blob Storage Task or downloading files are common requirements in SSIS. In order to work with Azure Blob Storage, Microsoft SSIS includes the Azure Blob Storage Task that allows to upload files to Azure Blob Storage, download files, creating [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/ssis-azure-blob-storage-task-examples-download-upload-move-delete-files-folders/">SSIS Azure Blob Storage Task Examples (Download, Upload, Delete files / folders)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2><span id="Introduction_8211_Using_SSIS_SFTP_task_FTP_SFTP_FTPS">Introduction</span></h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/AzureStorageLogo.png"><img loading="lazy" decoding="async" class="alignleft wp-image-6532 size-thumbnail" src="https://zappysys.com/blog/wp-content/uploads/2019/03/AzureStorageLogo-150x150.png" alt="Azure BLOB Storage" width="150" height="150" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/AzureStorageLogo-150x150.png 150w, https://zappysys.com/blog/wp-content/uploads/2019/03/AzureStorageLogo.png 225w" sizes="(max-width: 150px) 100vw, 150px" /></a>In this article, we will show <strong>SSIS Azure Blob Storage task examples</strong>. Uploading files using Azure Blob Storage Task or downloading files are common requirements in SSIS. In order to work with Azure Blob Storage, Microsoft SSIS includes the Azure Blob Storage Task that allows to upload files to Azure Blob Storage, download files, creating local and remote directories an more. In this article, we will show how to use the <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">SSIS Azure Blob Storage task</a> included in ZappySys <a href="https://zappysys.com/products/ssis-powerpack/">SSIS PowerPack</a>.</p>
<p>Azure Blob Storage Task can be used to perform various operations with Azure Storage objects (blobs and containers) (e.g. Download, Upload, Copy, Move, Rename, Delete, etc). You can also get single property of any Azure blob or get a list of blobs as ADO.net Table and which can be easily looped through using ForEachLoop Task. Most of the operations in this task support recursive search using wild card pattern (e.g. Myfile*.txt).</p>
<h2><span id="Prerequisite"><span id="Requirements">Prerequisite<br />
</span></span></h2>
<ol>
<li>First, you will need to have SSIS installed</li>
<li>Secondly, make sure to have SSDT</li>
<li>Download and install <a href="https://go.microsoft.com/fwlink/?LinkId=717179&amp;clcid=0x4009" target="_blank" rel="noopener">Microsoft Azure Storage Emulator</a></li>
<li>Download and install <a href="https://azure.microsoft.com/en-us/features/storage-explorer/" target="_blank" rel="noopener">Microsoft Azure Storage Explorer</a></li>
<li>Finally, do not forget to install ZappySys <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">SSIS PowerPack</a></li>
</ol>
<p><strong>NOTE:</strong> If you want to use Live account (Azure Blob Storage) then you can skip Step #3</p>
<h2><span id="What_is_Azure_Blob_Storage">What is Azure Blob Storage</span></h2>
<p>Azure Blob storage is Microsoft’s object storage solution for the cloud. you can store large amounts of unstructured data, such as text or binary data. Blob storage discloses three resources:</p>
<ul>
<li>Storage account (You can access data objects in Azure Storage through a storage account.<br />
For more information, <a href="https://docs.microsoft.com/en-us/azure/storage/common/storage-create-storage-account" target="_blank" rel="noopener">click here</a>.)</li>
<li>the containers in the account(constructs a set of blobs, it is similar to a folder in a file system.<br />
All blobs lie within a container, <strong>Note:</strong> Container name must be lowercase)</li>
<li>the blobs in a container. (Azure Storage offers three types of blobs: block blobs, append blobs, and <a href="https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-pageblob-overview" target="_blank" rel="noopener">page blobs</a>)<br />
See the below-attached diagram. It shows the relationship between these resources.<br />
<a href="https://i2.wp.com/zappysys.com/blog/wp-content/uploads/2018/04/blob1.png?ssl=1"><img loading="lazy" decoding="async" class=" wp-image-3569 alignleft" src="https://i2.wp.com/zappysys.com/blog/wp-content/uploads/2018/04/blob1.png?resize=258%2C131&amp;ssl=1" alt="" width="258" height="131" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/blob1.png 329w, https://zappysys.com/blog/wp-content/uploads/2018/04/blob1-300x152.png 300w" sizes="(max-width: 258px) 100vw, 258px" /></a>     You can also use Azure Storage Explorer on your Local machine. Azure Storage Explorer is a standalone app that enables you to easily work with Azure Storage data on Windows, macOS, and Linux. You can use Blob storage to expose data publicly to the world or to store application data privately. <a href="https://docs.microsoft.com/en-us/azure/vs-azure-tools-storage-manage-with-storage-explorer#connect-to-a-storage-account-or-service" target="_blank" rel="noopener">Connect to an Azure storage account or service</a></li>
</ul>
<h2></h2>
<p>&nbsp;</p>
<h2>Getting Started</h2>
<p>In order to start, we will show several examples. ZappySys includes an <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">SSIS Azure Blob Storage Task</a> that will allow you to access files / folders from Azure Blob to the Local machine, Upload files(s) to Azure Blob Storage. It will also support Delete, Rename, List, Get Property, Copy, Move, Create, Set Permission … and many more operations. Here we are showing you is, How to upload, download, move and delete files / folders from Azure Blob Storage.</p>
<p>You can connect to your Azure Storage Account by entering your storage account credentials. Here I am showing an example of the use of local Azure Storage Emulator.</p>
<h2>Setup Azure Storage client tools</h2>
<ol>
<li>Once you have <a href="https://go.microsoft.com/fwlink/?LinkId=717179&amp;clcid=0x4009" target="_blank" rel="noopener">downloaded and installed storage emulator</a> You can launch Microsoft Azure Storage Emulator from its Physical location or from the desktop or start menu shortcut.
<div id="attachment_3631" style="width: 869px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3631" class="wp-image-3631 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location.png" alt="Microsoft Azure Storage Emulator Physical Location" width="859" height="94" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location.png 859w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location-300x33.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location-768x84.png 768w" sizes="(max-width: 859px) 100vw, 859px" /></a><p id="caption-attachment-3631" class="wp-caption-text">Microsoft Azure Storage Emulator Physical Location</p></div></li>
<li>If You can see the below-attached Command Prompt screen after Emulator started. Then you can proceed to start Microsoft Azure Storage Explorer as the Azure Storage Emulator is started successfully.
<div id="attachment_3633" style="width: 710px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-screen-after-started.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3633" class="wp-image-3633 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-screen-after-started-e1552723801433.png" alt="Command Prompt Screen after Microsoft Azure Storage Emulator Started" width="700" height="237" /></a><p id="caption-attachment-3633" class="wp-caption-text">Command Prompt Screen after Microsoft Azure Storage Emulator Started</p></div></li>
<li>Now, You have to <a href="https://azure.microsoft.com/en-us/features/storage-explorer/" target="_blank" rel="noopener">download and install Microsoft Azure Storage Explorer</a> and then You can launch Microsoft Azure Storage Explorer from its Physical location or from the desktop or start menu shortcut.
<div id="attachment_3635" style="width: 837px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3635" class="wp-image-3635 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location.png" alt="Microsoft Azure Storage Explorer Physical Location" width="827" height="97" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location.png 827w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location-300x35.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location-768x90.png 768w" sizes="(max-width: 827px) 100vw, 827px" /></a><p id="caption-attachment-3635" class="wp-caption-text">Microsoft Azure Storage Explorer Physical Location</p></div></li>
</ol>
<h2>Create an Azure Blob Storage Container</h2>
<p>For Creating a Blob Container, First of all, you need to go to Microsoft Storage Explorer Window. Then you can go through like this way (Storage Accounts &#8211;&gt; (Development) &#8211;&gt; Blob Containers).</p>
<div id="attachment_3637" style="width: 556px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3637" class="wp-image-3637 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container-e1552723740747.png" alt="Microsoft Azure Storage Explorer: Create Blob Container" width="546" height="584" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container-e1552723740747.png 546w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container-e1552723740747-280x300.png 280w" sizes="(max-width: 546px) 100vw, 546px" /></a><p id="caption-attachment-3637" class="wp-caption-text">Microsoft Azure Storage Explorer: Create a Blob Container</p></div>
<p>you can also create a Virtual Directory under it. A Virtual Directory does not actually exist in Azure until you paste, drag or upload blobs into it.</p>
<div id="attachment_3638" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3638" class="wp-image-3638 size-large" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-1024x749.png" alt="Creating the new Virtual Directory under Blob Container" width="720" height="527" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-1024x749.png 1024w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-300x220.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-768x562.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container.png 1163w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-3638" class="wp-caption-text">Creating the new Virtual Directory under Blob Container</p></div>
<h2>SSIS Azure Blob Storage Task Examples</h2>
<p>Let´s start with an example. In this SSIS Azure Blob Storage Task File task example, we will upload, download, move and delete files / folders from Azure Blob Storage.</p>
<ol>
<li style="list-style-type: none">
<ol>
<li>First of All, Drag and Drop Azure Blob Storage Task from SSIS Toolbox and double click it to edit
<div id="attachment_3639" style="width: 613px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3639" class="wp-image-3639 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task.png" alt="Drag and Drop Azure Blob Storage Task" width="603" height="271" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task.png 603w, https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task-300x135.png 300w" sizes="(max-width: 603px) 100vw, 603px" /></a><p id="caption-attachment-3639" class="wp-caption-text">Drag and Drop Azure Blob Storage Task</p></div></li>
<li>The following options are available in Azure Blob Storage Task:
<div id="attachment_6677" style="width: 680px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-storage-task-options.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6677" class="wp-image-6677 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-storage-task-options.png" alt="Option to upload, download files in SSIS" width="670" height="616" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-storage-task-options.png 670w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-storage-task-options-300x276.png 300w" sizes="(max-width: 670px) 100vw, 670px" /></a><p id="caption-attachment-6677" class="wp-caption-text">Options to upload, download files in SSIS</p></div></li>
<li>You can also overwrite files and folder, skip all, overwrite if source is older, overwrite if the file size is different, rename files and more:
<div id="attachment_6678" style="width: 692px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/overwrite-action-ssis-za-am-task.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6678" class="wp-image-6678 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/overwrite-action-ssis-za-am-task.png" alt="Overwrite files in SSIS" width="682" height="492" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/overwrite-action-ssis-za-am-task.png 682w, https://zappysys.com/blog/wp-content/uploads/2019/03/overwrite-action-ssis-za-am-task-300x216.png 300w" sizes="(max-width: 682px) 100vw, 682px" /></a><p id="caption-attachment-6678" class="wp-caption-text">Overwrite files in SSIS</p></div></li>
<li>Let&#8217;s select the <strong>Download Azure file(s) to local directory</strong>. Now select/add The Source path, Check Recursive Scan to get all the sub files and sub folders and it&#8217;s files and add Target Path, This option will download files. In Path AccessMode we can use Direct to write the path directly or to use an SSIS variable.
<div id="attachment_6735" style="width: 595px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-download-files.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6735" class="wp-image-6735 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-download-files.png" alt="ssis-az-blob-aws-s3-download-files" width="585" height="522" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-download-files.png 585w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-download-files-300x268.png 300w" sizes="(max-width: 585px) 100vw, 585px" /></a><p id="caption-attachment-6735" class="wp-caption-text">SSIS Azure Blob Storage Task – Download files from Azure Blob Storage</p></div></li>
<li>That&#8217;s it now execute the package and it will download all the files and sub folders from the Azure Blob Storage Task to Local File Machine.</li>
</ol>
</li>
</ol>
<ol>
<li>Now Let&#8217;s configure the task to upload the local directory files and folder to Azure Blob Storage like below and execute the package. And also in this example i created the variable and stored target folder path in it and used that variable Target Path Variable.
<div id="attachment_6759" style="width: 595px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-upload-files.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6759" class="wp-image-6759 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-upload-files.png" alt="SSIS Azure Blob Storage Task – Upload files from Azure Blob Storage" width="585" height="523" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-upload-files.png 585w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-upload-files-300x268.png 300w" sizes="(max-width: 585px) 100vw, 585px" /></a><p id="caption-attachment-6759" class="wp-caption-text">SSIS Azure Blob Storage Task – Upload files from Azure Blob Storage</p></div></li>
<li>Let&#8217;s configure the task to delete Azure Blob Storage files like below and execute the package.
<div id="attachment_6743" style="width: 591px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-delete-files.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6743" class="wp-image-6743 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-delete-files.png" alt="SSIS Azure Blob Storage Task – Delete files from Azure Blob Storage" width="581" height="523" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-delete-files.png 581w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-delete-files-300x270.png 300w" sizes="(max-width: 581px) 100vw, 581px" /></a><p id="caption-attachment-6743" class="wp-caption-text">SSIS Azure Blob Storage Task – Delete files from Azure Blob Storage</p></div></li>
<li>Let&#8217;s configure the task to move Azure Blob Storage files to another directory like below and execute the package.
<div id="attachment_6746" style="width: 566px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-move-files.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6746" class="wp-image-6746 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-move-files.png" alt="SSIS Azure Blob Storage Task – Move files from Azure Blob Storage" width="556" height="476" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-move-files.png 556w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-move-files-300x257.png 300w" sizes="(max-width: 556px) 100vw, 556px" /></a><p id="caption-attachment-6746" class="wp-caption-text">SSIS Azure Blob Storage Task – Move files from Azure Blob Storage</p></div></li>
<li>That&#8217;s it like upper examples you can configure Azure Blob Storage Task to use it&#8217;s other options also.</li>
<li>Let&#8217;s see other SSIS Azure Blob Storage Task examples in below sections</li>
</ol>
<h2>Working with advanced filters</h2>
<p>In order to understand filters, we will create an example for you. This time we will create SSIS Azure Blob Storage task example to show how to exclude some files from the downloading process.</p>
<ol>
<li>In addition, it is also possible to add advanced filters to the SSIS Azure Blob Storage task to exclude or include files and folders. The following example shows how to use the Advanced filters. In the <strong>Azure Blob Storage Task, </strong>go to the Advanced Filter page and in Exclude RegX we will write \.exe$ to exclude the file with exe extension to be downloaded. You can use RegX (regular expressions) in the advanced filter:
<div id="attachment_6693" style="width: 691px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-working-with-advanced-filters.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6693" class="wp-image-6693 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-working-with-advanced-filters.png" alt="Advanced filters" width="681" height="487" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-working-with-advanced-filters.png 681w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-working-with-advanced-filters-300x215.png 300w" sizes="(max-width: 681px) 100vw, 681px" /></a><p id="caption-attachment-6693" class="wp-caption-text">Advanced filters</p></div></li>
</ol>
<p>&nbsp;</p>
<h2>Working with wildcards in SSIS Azure Blob Storage task (Multiple files only)</h2>
<p>In order to understand wildcards, the new example will show how to work with Wildcards will help you to work with multiple files or folder with common characteristics.</p>
<ol>
<li>The following example shows how to copy all the files will all the extensions in the source folder. We use the *.*, which means that any file name with any extension will be downloaded:
<div id="attachment_6695" style="width: 690px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-working-with-wildcards.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6695" class="wp-image-6695 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-working-with-wildcards.png" alt="Working with Wildcards" width="680" height="487" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-working-with-wildcards.png 680w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-working-with-wildcards-300x215.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></a><p id="caption-attachment-6695" class="wp-caption-text">Working with Wildcards</p></div></li>
<li>If we want to download all the files with extension txt, use the following Path:<br />
<pre class="crayon-plain-tag">/source/*.txt;</pre>
</li>
<li>Another example would be to download all the files with the following names: file1.txt, file2.txt and file3.txt.  We could use the following Path:<br />
<pre class="crayon-plain-tag">/source/file?.txt</pre>
</li>
</ol>
<h2></h2>
<h2><strong>Working with SSIS expressions and variables in Azure Blob Storage Task</strong></h2>
<p>In order to understand expressions, the following example will show how to work with SSIS expressions combined with variables in the SSIS Azure Blob Storage task. In this example we will delete files in Azure Blob Storage using variables and expressions.</p>
<div class="messageTextWrapper">
<p class="urlPreviewText">ZappySys Providers simple and powerful Placeholders. You can still use SSIS expression language. Placeholders allow direct Variable Use easy to see compared to hidden SSIS Expression (C# style). Placeholders have simple embedding use of variables.</p>
</div>
<ol>
<li> First, we will first create a variable in SSIS. In this example the file name is <strong>MyFile</strong> and the Value<strong> file1</strong>.
<div id="attachment_2994" style="width: 782px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis.sftp-variable.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2994" class="size-full wp-image-2994" src="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis.sftp-variable.png" alt="Create a SSIS variable" width="772" height="205" srcset="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis.sftp-variable.png 772w, https://zappysys.com/blog/wp-content/uploads/2018/03/ssis.sftp-variable-300x80.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/03/ssis.sftp-variable-768x204.png 768w" sizes="(max-width: 772px) 100vw, 772px" /></a><p id="caption-attachment-2994" class="wp-caption-text">Create an SSIS variable</p></div></li>
<li>As a second step, we will write in path the value<strong> \destination\{{User.MyFile}}.txt. </strong>This will concatenate the folder destination with the variable MyFile. The task will delete the file1.txt from the Azure Blob Storage folder.
<div id="attachment_6699" style="width: 687px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-working-with-variable-in-path.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6699" class="wp-image-6699 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-working-with-variable-in-path.png" alt="Using SSIS expressions" width="677" height="487" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-working-with-variable-in-path.png 677w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-working-with-variable-in-path-300x216.png 300w" sizes="(max-width: 677px) 100vw, 677px" /></a><p id="caption-attachment-6699" class="wp-caption-text">Using SSIS expressions</p></div></li>
<li>The next example will show how to create a Azure Blob Storage file using expressions and variables in SSIS:
<div id="attachment_6700" style="width: 689px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-aws-task-create-file.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6700" class="wp-image-6700 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-aws-task-create-file.png" alt="Create file" width="679" height="481" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-aws-task-create-file.png 679w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-aws-task-create-file-300x213.png 300w" sizes="(max-width: 679px) 100vw, 679px" /></a><p id="caption-attachment-6700" class="wp-caption-text">Create file</p></div></li>
<li>Content to write is the content of the file. In <strong>Target, </strong>go to path and write the following: For more information on placeholders <a href="https://zappysys.com/onlinehelp/ssis-powerpack/scr/ssis-format-specifiers.htm#A1" target="_blank" rel="noopener">check this post</a> and also check <a href="https://zappysys.zendesk.com/hc/en-us/articles/115004918633-How-to-format-Path-URL-using-date-time-format" target="_blank" rel="noopener">this post</a>.<br />
<pre class="crayon-plain-tag">/destination/{{User::FileName,MM-dd-yyyy}}</pre>
</li>
<li>We are using a variable in SSIS named FileName of type DateTime. We are concatenating the Azure Blob Storage folder destination with the variable. As you can see, the expressions with ZappySys are very simple.</li>
</ol>
<h2>Example to verify if file exists in SSIS Azure Blob Storage task</h2>
<p>Finally, we will verify if a file in Azure Blob Storage exists or not using the SSIS Azure Blob Storage task.</p>
<ol>
<li>In order to start, we will use the SSIS variables, create a variable of Boolean type named FileExists. In <strong>Storage Action, </strong>select <strong>Get Azure file exist status. </strong>In path, select the path of the file to verify if it exists or not.
<div id="attachment_6749" style="width: 593px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-file-exist.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6749" class="wp-image-6749 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-file-exist.png" alt="SSIS Azure Blob Storage Task – Check File Exist in Azure Blob Storage" width="583" height="523" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-file-exist.png 583w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-blob-aws-s3-file-exist-300x269.png 300w" sizes="(max-width: 583px) 100vw, 583px" /></a><p id="caption-attachment-6749" class="wp-caption-text">SSIS Azure Blob Storage Task – Check File Exist in Azure Blob Storage</p></div></li>
<li>Secondly, we will use the <strong>ZS Logging Task </strong>to check the value of the variable File Exists. This task will show the value of the variable in the log. Drag and drop the task and join it with the ZS Azure Blob Storage Task:
<div id="attachment_6702" style="width: 279px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-to-log-task.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6702" class="wp-image-6702 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-az-to-log-task.png" alt="The SSIS Log task" width="269" height="260" /></a><p id="caption-attachment-6702" class="wp-caption-text">The SSIS Log task</p></div></li>
<li>In order to get the value, we will insert it in the Logging Task. To do that, insert the Variable and select the FileExists variable:
<div id="attachment_3005" style="width: 634px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis-ftp-verify-folder-exists.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3005" class="size-full wp-image-3005" src="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis-ftp-verify-folder-exists.png" alt="Configuring variable" width="624" height="501" srcset="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis-ftp-verify-folder-exists.png 624w, https://zappysys.com/blog/wp-content/uploads/2018/03/ssis-ftp-verify-folder-exists-300x241.png 300w" sizes="(max-width: 624px) 100vw, 624px" /></a><p id="caption-attachment-3005" class="wp-caption-text">Add the variable in the task logging</p></div></li>
<li>Finally, run the package and verify the Output (you can use View and Output to see the output) and check the value of the Logging Task. If the file exists, the value will be true. If it does not exist, the value will be false.
<div id="attachment_3004" style="width: 1036px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/03/SFTP-read-variables.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3004" class="size-full wp-image-3004" src="https://zappysys.com/blog/wp-content/uploads/2018/03/SFTP-read-variables.png" alt="Verify the value of the variable in the SSIS output" width="1026" height="234" srcset="https://zappysys.com/blog/wp-content/uploads/2018/03/SFTP-read-variables.png 1026w, https://zappysys.com/blog/wp-content/uploads/2018/03/SFTP-read-variables-300x68.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/03/SFTP-read-variables-768x175.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/03/SFTP-read-variables-1024x234.png 1024w" sizes="(max-width: 1026px) 100vw, 1026px" /></a><p id="caption-attachment-3004" class="wp-caption-text">Verify the variable in Output</p></div></li>
</ol>
<h2>How to loop through Azure Blob Storage files in SSIS</h2>
<p>You can also loop through files to perform custom action file by by. Azure Blob Storage Task support Action to <strong>get File List as ADO.net Recordset</strong></p>
<p>To get File list from Azure Blob Storage Server perform the following steps.</p>
<ol>
<li>From Storage Action select <strong><strong>Get Azure files as ADO.net DataTable<br />
</strong></strong></p>
<div id="attachment_6703" style="width: 615px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-get-files-as-ado.net-datatable.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6703" class="wp-image-6703 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-get-files-as-ado.net-datatable.png" alt="Get files as ADO.net DataTable" width="605" height="295" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-get-files-as-ado.net-datatable.png 605w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-get-files-as-ado.net-datatable-300x146.png 300w" sizes="(max-width: 605px) 100vw, 605px" /></a><p id="caption-attachment-6703" class="wp-caption-text">Get files as ADO.net DataTable</p></div>
<p>&nbsp;</li>
<li>Create new Azure Blob Storage Connection by clicking New next to connection dropdown.</li>
<li>Select Source Path (e.g  <strong>\myroot\folder\*.txt </strong> )</li>
<li>Select or create new SSIS Variable (e.g. <strong>varFiles</strong> ) which will hold file list result (Must be Object datatype variable).</li>
<li>Click OK to close.</li>
<li>Create 3 more SSIS variables to hold File Path (String), Name (String) and Size (Int32). We will use in the next step.</li>
<li>Now drag SSIS ForEach Loop Container Task from SSIS Toolbox</li>
<li>Edit Loop Task and Select <strong>Foreach ADO Enumerator</strong> from the Enumerator dropdown</li>
<li>Select variable (e.g. <strong><strong>varFiles)<br />
</strong></strong></p>
<div id="attachment_346" style="width: 635px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2016/02/ssis-looping-through-files-ado-net-recordset.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-346" class="wp-image-346 size-full" src="https://zappysys.com/blog/wp-content/uploads/2016/02/ssis-looping-through-files-ado-net-recordset.png" alt="Loop through files in SSIS using ForEach Loop Task (use ADO.net Recordset variable)" width="625" height="563" srcset="https://zappysys.com/blog/wp-content/uploads/2016/02/ssis-looping-through-files-ado-net-recordset.png 625w, https://zappysys.com/blog/wp-content/uploads/2016/02/ssis-looping-through-files-ado-net-recordset-300x270.png 300w" sizes="(max-width: 625px) 100vw, 625px" /></a><p id="caption-attachment-346" class="wp-caption-text">Loop through files in SSIS using ForEach Loop Task (use ADO.net Recordset variable)</p></div></li>
<li>Click on Variable Mappings Tab and configure like below.
<div id="attachment_345" style="width: 582px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2016/02/ssis-looping-through-files-ado-net-recordset-variable-mapping.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-345" class="size-full wp-image-345" src="https://zappysys.com/blog/wp-content/uploads/2016/02/ssis-looping-through-files-ado-net-recordset-variable-mapping.png" alt="Variable Mappings for ForEach Loop Task - Loop through files in a folder using SSIS" width="572" height="272" srcset="https://zappysys.com/blog/wp-content/uploads/2016/02/ssis-looping-through-files-ado-net-recordset-variable-mapping.png 572w, https://zappysys.com/blog/wp-content/uploads/2016/02/ssis-looping-through-files-ado-net-recordset-variable-mapping-300x143.png 300w" sizes="(max-width: 572px) 100vw, 572px" /></a><p id="caption-attachment-345" class="wp-caption-text">Variable Mappings for ForEach Loop Task &#8211; Loop through files in a folder using SSIS</p></div></li>
<li>Drag ZS Logging Task and place inside Loop and Display variables</li>
<li>That&#8217;s it</li>
</ol>
<p>For more information to <a href="//zappysys.com/blog/get-list-of-files-and-folders-in-ssis-for-looping/" target="_blank" rel="noopener">loop through files on local machine using SSIS check this article</a>.</p>
<h2>Conclusion</h2>
<p>To conclude, we can say that working with Azure Blob Storage is now very simple. In this article, we looked at SSIS Azure Blob Storage Task examples on how to upload, download, delete files and folders. We used variables, wildcards and expressions. If you liked the tasks you can start using them by downloading SSIS PowerPack from our <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">web site here</a>. We saw different SSIS Azure Blob Storage Task examples to understand how to use the task in different scenarios.</p>
<p>Thanks for your time.</p>
<h2>References</h2>
<ul>
<li><a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">About SSIS PowerPack</a></li>
<li><a href="https://docs.microsoft.com/en-us/sql/integration-services/expressions/integration-services-ssis-expressions" target="_blank" rel="noopener">Integration Services (SSIS) Expressions</a></li>
<li>Help File : <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=azure-cloud-storage-task.htm" target="_blank" rel="noopener">Azure Storage Task</a></li>
</ul>
<p>The post <a href="https://zappysys.com/blog/ssis-azure-blob-storage-task-examples-download-upload-move-delete-files-folders/">SSIS Azure Blob Storage Task Examples (Download, Upload, Delete files / folders)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Read Azure Blob Storage Files in SSIS (CSV, JSON, XML) &#8211; Gen2 / Gen1</title>
		<link>https://zappysys.com/blog/read-azure-blob-storage-files-ssis-csv-json-xml/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Sat, 16 Mar 2019 06:03:00 +0000</pubDate>
				<category><![CDATA[SSIS Azure Blob Connection]]></category>
		<category><![CDATA[SSIS Azure Blob CSV Source]]></category>
		<category><![CDATA[SSIS Azure Blob JSON Source]]></category>
		<category><![CDATA[SSIS Azure Blob Storage Task]]></category>
		<category><![CDATA[SSIS Azure Blob XML Source]]></category>
		<category><![CDATA[azure]]></category>
		<category><![CDATA[azure blog storage]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[xml]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=6529</guid>

					<description><![CDATA[<p>Introduction In our previous blog we saw how to load data into Azure Blob Storage. Now in this blog, we will see How to read Azure Blob Storage Files in SSIS (CSV, JSON, XML Format files). To illustrate, we will use ZappySys SSIS PowerPack, which includes several tasks to import/export data from multiples sources to multiple destinations like [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/read-azure-blob-storage-files-ssis-csv-json-xml/">Read Azure Blob Storage Files in SSIS (CSV, JSON, XML) &#8211; Gen2 / Gen1</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/AzureStorageLogo.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="alignleft wp-image-6532 size-thumbnail" src="https://zappysys.com/blog/wp-content/uploads/2019/03/AzureStorageLogo-150x150.png" alt="Azure BLOB Storage" width="150" height="150" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/AzureStorageLogo-150x150.png 150w, https://zappysys.com/blog/wp-content/uploads/2019/03/AzureStorageLogo.png 225w" sizes="(max-width: 150px) 100vw, 150px" /></a>In our previous blog we saw <a href="https://zappysys.com/blog/ssis-data-load-sql-server-azure-blob-split-files-gzip/" target="_blank" rel="noopener">how to load data into Azure Blob Storage</a>. Now in this blog, we will see <strong>How to read Azure Blob Storage Files in SSIS (CSV, JSON, XML Format files)</strong>. To illustrate, we will use <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a>, which includes several tasks to import/export data from multiples sources to multiple destinations like flat files, Azure, AWS, databases, Office files and more. They are Coding free, drag and drop high-performance suite of <em>Custom SSIS Components</em> and <em>SSIS Tasks.</em> If you like perform other operations on Azure Blob Storage Files (e.g. Download, Upload, Create, Delete) then <a href="https://zappysys.com/blog/category/ssis/tasks/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">check these articles</a>.</p>
<p>In nutshell, this post will focus on how to Read Azure Blob Storage files in SSIS using following tasks / sources.</p>
<p>&nbsp;</p>
<p><strong>Components Mentioned in this article</strong><br />
<div class="su-table su-table-alternate">
<table style="width: 407px">
<tbody>
<tr>
<td style="width: 35px"><img loading="lazy" decoding="async" src="https://i1.wp.com/zappysys.com/onlinehelp/ssis-powerpack/scr/images/azure-blob-csv-source/ssis-azure-blob-csv-file-source.png?zoom=1.100000023841858&amp;w=720&amp;ssl=1" alt="SSIS Azure Blob CSV File Source" width="32" height="32" /></td>
<td style="width: 356px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-source-csv-file-read-blob-storage/" target="_blank" rel="noopener">Azure Blob CSV File Source</a></td>
</tr>
<tr>
<td style="width: 35px"><img loading="lazy" decoding="async" src="https://i0.wp.com/zappysys.com/onlinehelp/ssis-powerpack/scr/images/azure-blob-csv-destination/ssis-azure-blob-csv-file-destination.png?zoom=1.100000023841858&amp;w=720&amp;ssl=1" alt="SSIS Azure Blob CSV File Destination" width="32" height="32" /></td>
<td style="width: 356px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-destination-csv-file-write-blob-storage/" target="_blank" rel="noopener">Azure Blob CSV File Destination</a></td>
</tr>
<tr>
<td style="width: 35px"><img loading="lazy" decoding="async" src="https://i1.wp.com/zappysys.com/onlinehelp/ssis-powerpack/scr/images/azure-blob-xml-source/ssis-azure-blob-xml-file-source.png?zoom=1.100000023841858&amp;w=720&amp;ssl=1" alt="SSIS Azure Blob XML File Source" width="32" height="32" /></td>
<td style="width: 356px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-xml-file-source/" target="_blank" rel="noopener">Azure Blob XML File Source</a></td>
</tr>
<tr>
<td style="width: 35px"><img loading="lazy" decoding="async" src="https://i0.wp.com/zappysys.com/onlinehelp/ssis-powerpack/scr/images/azure-blob-json-source/ssis-azure-blob-json-file-source.png?zoom=1.100000023841858&amp;w=720&amp;ssl=1" alt="SSIS Azure Blob JSON File Source" width="32" height="32" /></td>
<td style="width: 356px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-json-file-source/" target="_blank" rel="noopener">Azure Blob JSON File Source</a></td>
</tr>
</tbody>
</table>
</div>
<h2><span id="Requirements">Prerequisite<br />
</span></h2>
<ol>
<li>First, you will need to have SSIS installed</li>
<li>Secondly, make sure to have SSDT</li>
<li>Download and install <a href="https://go.microsoft.com/fwlink/?LinkId=717179&amp;clcid=0x4009" target="_blank" rel="noopener">Microsoft Azure Storage Emulator</a></li>
<li>Download and install <a href="https://azure.microsoft.com/en-us/features/storage-explorer/" target="_blank" rel="noopener">Microsoft Azure Storage Explorer</a></li>
<li>Finally, do not forget to install ZappySys <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">SSIS PowerPack</a></li>
</ol>
<p><strong>NOTE:</strong> If you want to use Live account (Azure Blob Storage) then you can skip Step #3</p>
<h2>What is Azure Blob Storage</h2>
<p>Azure Blob storage is Microsoft&#8217;s object storage solution for the cloud. you can store large amounts of unstructured data, such as text or binary data. Blob storage discloses three resources:</p>
<ul>
<li>Storage account (You can access data objects in Azure Storage through a storage account.<br />
For more information, <a href="https://docs.microsoft.com/en-us/azure/storage/common/storage-create-storage-account" target="_blank" rel="noopener">click here</a>.)</li>
<li>the containers in the account(constructs a set of blobs, it is similar to a folder in a file system.<br />
All blobs lie within a container, <strong>Note:</strong> Container name must be lowercase)</li>
<li>the blobs in a container. (Azure Storage offers three types of blobs: block blobs, append blobs, and <a href="https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-pageblob-overview" target="_blank" rel="noopener">page blobs</a>)<br />
See the below-attached diagram. It shows the relationship between these resources.<br />
<a href="https://zappysys.com/blog/wp-content/uploads/2018/04/blob1.png"><img loading="lazy" decoding="async" class=" wp-image-3569 alignleft" src="https://zappysys.com/blog/wp-content/uploads/2018/04/blob1-300x152.png" alt="" width="258" height="131" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/blob1-300x152.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/blob1.png 329w" sizes="(max-width: 258px) 100vw, 258px" /></a>     You can also use Azure Storage Explorer on your Local machine. Azure Storage Explorer is a standalone app that enables you to easily work with Azure Storage data on Windows, macOS, and Linux. You can use Blob storage to expose data publicly to the world or to store application data privately. <a href="https://docs.microsoft.com/en-us/azure/vs-azure-tools-storage-manage-with-storage-explorer#connect-to-a-storage-account-or-service" target="_blank" rel="noopener">Connect to an Azure storage account or service</a></li>
</ul>
<h2></h2>
<p>&nbsp;</p>
<h2>Getting Started</h2>
<p>In order to start, we will show several examples. ZappySys includes an <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">SSIS Azure Blob Source for CSV/JSON/XML File</a> that will help you in reading CSV, JSON and XML Files from Azure Blob to the Local machine, Upload files(s) to Azure Blob Storage. It will also support Delete, Rename, List, Get Property, Copy, Move, Create, Set Permission … and many more operations. Here we are showing you is, How to download files from Azure Blob Storage.</p>
<p>You can connect to your Azure Storage Account by entering your storage account credentials. Here I am showing an example of the use of local Azure Storage Emulator.</p>
<h2>Setup Azure Storage client tools</h2>
<ol>
<li>Once you have <a href="https://go.microsoft.com/fwlink/?LinkId=717179&amp;clcid=0x4009" target="_blank" rel="noopener">downloaded and installed storage emulator</a> You can launch Microsoft Azure Storage Emulator from its Physical location or from the desktop or start menu shortcut.
<div id="attachment_3631" style="width: 869px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3631" class="wp-image-3631 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location.png" alt="Microsoft Azure Storage Emulator Physical Location" width="859" height="94" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location.png 859w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location-300x33.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location-768x84.png 768w" sizes="(max-width: 859px) 100vw, 859px" /></a><p id="caption-attachment-3631" class="wp-caption-text">Microsoft Azure Storage Emulator Physical Location</p></div></li>
<li>If You can see the below-attached Command Prompt screen after Emulator started. Then you can proceed to start Microsoft Azure Storage Explorer as the Azure Storage Emulator is started successfully.
<div id="attachment_3633" style="width: 710px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-screen-after-started.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3633" class="wp-image-3633 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-screen-after-started-e1552723801433.png" alt="Command Prompt Screen after Microsoft Azure Storage Emulator Started" width="700" height="237" /></a><p id="caption-attachment-3633" class="wp-caption-text">Command Prompt Screen after Microsoft Azure Storage Emulator Started</p></div></li>
<li>Now, You have to <a href="https://azure.microsoft.com/en-us/features/storage-explorer/" target="_blank" rel="noopener">download and install Microsoft Azure Storage Explorer</a> and then You can launch Microsoft Azure Storage Explorer from its Physical location or from the desktop or start menu shortcut.
<div id="attachment_3635" style="width: 837px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3635" class="wp-image-3635 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location.png" alt="Microsoft Azure Storage Explorer Physical Location" width="827" height="97" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location.png 827w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location-300x35.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location-768x90.png 768w" sizes="(max-width: 827px) 100vw, 827px" /></a><p id="caption-attachment-3635" class="wp-caption-text">Microsoft Azure Storage Explorer Physical Location</p></div></li>
</ol>
<h2>Create an Azure Blob Storage Container</h2>
<p>For Creating a Blob Container, First of all, you need to go to Microsoft Storage Explorer Window. Then you can go through like this way (Storage Accounts &#8211;&gt; (Development) &#8211;&gt; Blob Containers).</p>
<div id="attachment_3637" style="width: 556px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3637" class="wp-image-3637 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container-e1552723740747.png" alt="Microsoft Azure Storage Explorer: Create Blob Container" width="546" height="584" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container-e1552723740747.png 546w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container-e1552723740747-280x300.png 280w" sizes="(max-width: 546px) 100vw, 546px" /></a><p id="caption-attachment-3637" class="wp-caption-text">Microsoft Azure Storage Explorer: Create a Blob Container</p></div>
<p>you can also create a Virtual Directory under it. A Virtual Directory does not actually exist in Azure until you paste, drag or upload blobs into it.</p>
<div id="attachment_3638" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3638" class="wp-image-3638 size-large" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-1024x749.png" alt="Creating the new Virtual Directory under Blob Container" width="720" height="527" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-1024x749.png 1024w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-300x220.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-768x562.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container.png 1163w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-3638" class="wp-caption-text">Creating the new Virtual Directory under Blob Container</p></div>
<h2>Read Azure Blob Storage Files in SSIS (CSV, JSON, XML)</h2>
<p>Let´s start with an example. In this SSIS Azure Blob Source for CSV/JSON/XML File task example, we will read CSV/JSON/XML files from Azure Blob Storage to SQL Server database.</p>
<ol>
<li>First of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.
<div id="attachment_7934" style="width: 470px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-7934" class="wp-image-7934 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" alt="Drag and Drop SSIS Data Flow Task from SSIS Toolbox" width="460" height="155" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png 460w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task-300x101.png 300w" sizes="(max-width: 460px) 100vw, 460px" /></a><p id="caption-attachment-7934" class="wp-caption-text">Drag and Drop SSIS Data Flow Task from SSIS Toolbox</p></div></li>
<li>Drag and Drop relevant Azure Blob Source for CSV/JSON/XML File Task from the SSIS Toolbox.
<div id="attachment_6586" style="width: 710px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-Azure-Blob-Source-add-task.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6586" class="wp-image-6586 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-Azure-Blob-Source-add-task-e1552988071678.png" alt="Add Azure Blob Source Tasks" width="700" height="412" /></a><p id="caption-attachment-6586" class="wp-caption-text">Add Azure Blob Source Tasks</p></div></li>
<li>Create a connection for Azure Blob Storage Account.
<div id="attachment_6538" style="width: 645px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-blob-source-select-connection-manager.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6538" class="wp-image-6538 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-blob-source-select-connection-manager.png" alt="Create Azure Storage Connection" width="635" height="635" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-blob-source-select-connection-manager.png 635w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-blob-source-select-connection-manager-150x150.png 150w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-blob-source-select-connection-manager-300x300.png 300w" sizes="(max-width: 635px) 100vw, 635px" /></a><p id="caption-attachment-6538" class="wp-caption-text">Create Azure Storage Connection</p></div></li>
<li>We can also connect the Microsoft Azure Storage emulator also like this.
<div id="attachment_3642" style="width: 631px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-account-connection-screen.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3642" class="wp-image-3642 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-account-connection-screen.png" alt="Connection Form of Azure Blob Storage Account" width="621" height="542" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-account-connection-screen.png 621w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-account-connection-screen-300x262.png 300w" sizes="(max-width: 621px) 100vw, 621px" /></a><p id="caption-attachment-3642" class="wp-caption-text">Connection Form of Azure Blob Storage Account</p></div></li>
<li>Select the relevant single file to read from Azure Blob Storage in their relevant source of CSV/JSON/XML File Task.
<div id="attachment_6539" style="width: 944px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-Azure-Blob-Source-select-File.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6539" class="wp-image-6539 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-Azure-Blob-Source-select-File.png" alt="Select File From Azure Blob Storage" width="934" height="582" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-Azure-Blob-Source-select-File.png 934w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-Azure-Blob-Source-select-File-300x187.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-Azure-Blob-Source-select-File-768x479.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-Azure-Blob-Source-select-File-436x272.png 436w" sizes="(max-width: 934px) 100vw, 934px" /></a><p id="caption-attachment-6539" class="wp-caption-text">Select File From Azure Blob Storage</p></div></li>
<li>We can also read the multiple files stored in Azure Blob Storage using wildcard pattern supported e.g. dbo.tblNames*.csv / dbo.tblNames*.json / dbo.tblNames*.xml in relevant source task
<div id="attachment_6540" style="width: 557px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-Azure-Blob-Source-set-multiple-Filepath.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6540" class="wp-image-6540 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-Azure-Blob-Source-set-multiple-Filepath.png" alt="Use wildcard pattern .* to read multiple files data" width="547" height="178" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-Azure-Blob-Source-set-multiple-Filepath.png 547w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-Azure-Blob-Source-set-multiple-Filepath-300x98.png 300w" sizes="(max-width: 547px) 100vw, 547px" /></a><p id="caption-attachment-6540" class="wp-caption-text">Use wildcard pattern .* to read multiple files data</p></div></li>
<li>We can also read the zip and gzip compressed files also without extracting it in the specific Azure Blob Source for CSV/JSON/XML File Task.
<div id="attachment_6541" style="width: 698px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-blob-storage-source-read-zip-gzip-compressed-files.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6541" class="wp-image-6541 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-blob-storage-source-read-zip-gzip-compressed-files.png" alt="Reading zip and gzip compressed files (stream mode)" width="688" height="273" srcset="https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-blob-storage-source-read-zip-gzip-compressed-files.png 688w, https://zappysys.com/blog/wp-content/uploads/2019/03/ssis-azure-blob-storage-source-read-zip-gzip-compressed-files-300x119.png 300w" sizes="(max-width: 688px) 100vw, 688px" /></a><p id="caption-attachment-6541" class="wp-caption-text">Reading zip and gzip compressed files (stream mode)</p></div></li>
<li>That&#8217;s it, we are ready to load this file(s) data into the SQL Server.</li>
</ol>
<h2>Load Azure Blob Storage Files data into SQL Server</h2>
<div class="content_block" id="custom_post_widget-5617"><p>ZappySys SSIS PowerPack makes it easy to load data from various sources such as REST, SOAP, JSON, XML, CSV or from other source into SQL Server, or PostgreSQL, or Amazon Redshift, or other  targets. The <strong>Upsert Destination</strong> component allows you to automatically insert new records and update existing ones based on key columns. Below are the detailed steps to configure it.</p>
<h3>Step 1: Add Upsert Destination to Data Flow</h3>
<ol>
<li>Drag and drop the <strong>Upsert Destination</strong> component from the SSIS Toolbox.</li>
<li>Connect your source component (e.g., JSON / REST / Other Source) to the Upsert Destination.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png" /></a>
<p class="wp-caption-text">SSIS - Data Flow - Drang and Drop Upsert Destination Component</p>
</div>
<h3>Step 2: Configure Target Connection</h3>
<ol>
<li>Double-click the <strong>Upsert Destination</strong> component to open the configuration window.</li>
<li>Under <strong>Connection</strong>, select an existing target connection or click <strong>NEW</strong> to create a new connection.
<ul>
<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.</li>
</ul>
</li>
</ol>
<h3>Step 3: Select or Create Target Table</h3>
<ol>
<li>In the <strong>Target Table</strong> dropdown, select the table where you want to load data.</li>
<li>Optionally, click <strong>NEW</strong> to create a new table based on the source columns.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png" /></a>
<p class="wp-caption-text">Configure SSIS Upsert Destination Connection - Loading data (REST / SOAP / JSON / XML /CSV) into SQL Server or other target using SSIS</p>
</div>
<h3>Step 4: Map Columns</h3>
<ol>
<li>Go to the <strong>Mappings</strong> tab.</li>
<li>Click <strong>Auto Map</strong> to map source columns to target columns by name.</li>
<li>Ensure you <strong>check the Primary key column(s)</strong> that will determine whether a record is inserted or updated.</li>
<li>You can manually adjust the mappings if necessary.</li>
</ol>
 <div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination - Columns Mappings</p>
</div>
<h3>Step 5: Save Settings</h3>
<ul>
<li>Click <strong>OK</strong> to save the Upsert Destination configuration.</li>
</ul>
<h3>Step 6: Optional: Add Logging or Analysis</h3>
<ul>
<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.</li>
</ul>
<h3>Step 7: Execute the Package</h3>
<ul>
<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.</li>
</ul>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination Execution</p>
</div></div>
<h2>Read / Write data to Azure Data Lake Storage Gen 2 / Gen 1 (CSV / XML / JSON)</h2>
<p>Check the below articles if you like to know more about how to write to Azure Blob Storage.</p>
<p><strong>Article#1</strong></p>
<p><a href="https://community.zappysys.com/t/how-to-read-write-from-azure-data-lake-storage-gen2-in-ssis/125">https://community.zappysys.com/t/how-to-read-write-from-azure-data-lake-storage-gen2-in-ssis/125</a></p>
<p><strong>Article#2</strong></p>
<blockquote class="wp-embedded-content" data-secret="7nwUGMR4gx"><p><a href="https://zappysys.com/blog/ssis-data-load-sql-server-azure-blob-split-files-gzip/">SSIS Data Load &#8211; SQL Server to Azure Blob (Split Files, GZip)</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" src="https://zappysys.com/blog/ssis-data-load-sql-server-azure-blob-split-files-gzip/embed/#?secret=7nwUGMR4gx" data-secret="7nwUGMR4gx" width="600" height="338" title="&#8220;SSIS Data Load &#8211; SQL Server to Azure Blob (Split Files, GZip)&#8221; &#8212; ZappySys Blog" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<p>&nbsp;</p>
<h2><span id="Conclusion">Conclusion</span></h2>
<p>Above all, in this blog, we learned how to Read Azure Blob Storage Files in SSIS. We used <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-source-csv-file-read-blob-storage/" target="_blank" rel="noopener">Azure Blob Source for CSV File</a>, <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-json-file-source/" target="_blank" rel="noopener">Azure Blob Source for JSON File</a> and <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-xml-file-source/" target="_blank" rel="noopener">Azure Blob Source for XML File</a> to read the file(s) from Microsoft Azure Blob Storage and load data into SQL server. You can <a href="https://zappysys.com/products/ssis-powerpack/">download SSIS PowerPack here</a> to try many other scenarios not discussed in this blog along with 70+ other components.</p>
<h2><span id="References">References</span></h2>
<p>Finally, you can use the following links for more information:</p>
<ul>
<li style="list-style-type: none;">
<ul>
<li><a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-source-csv-file-read-blob-storage/" target="_blank" rel="noopener">Azure Blob Source for CSV File.</a></li>
<li><a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-json-file-source/" target="_blank" rel="noopener">Blob Source for JSON File</a></li>
<li><a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-xml-file-source/" target="_blank" rel="noopener">Azure Blob Source for XML File</a></li>
<li><a href="https://azure.microsoft.com/en-in/services/storage/blobs/" target="_blank" rel="noopener">Microsoft Azure Blob Storage</a></li>
<li><strong>Help File:</strong> Documentation of <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=ssis-azure-blob-csv-source.htm" target="_blank" rel="noopener">Azure Blob Source for CSV File</a>, <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=ssis-azure-blob-json-source.htm" target="_blank" rel="noopener">Azure Blob Source for JSON File</a> and <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=ssis-azure-blob-xml-source.htm" target="_blank" rel="noopener">Azure Blob Source for XML File</a></li>
</ul>
</li>
</ul>
<p>The post <a href="https://zappysys.com/blog/read-azure-blob-storage-files-ssis-csv-json-xml/">Read Azure Blob Storage Files in SSIS (CSV, JSON, XML) &#8211; Gen2 / Gen1</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Setting Metadata key / value in SSIS Amazon S3 / Azure Storage Task</title>
		<link>https://zappysys.com/blog/setting-metadata-key-value-ssis-amazon-s3-azure-storage-task/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Thu, 17 Jan 2019 15:21:54 +0000</pubDate>
				<category><![CDATA[SSIS Amazon Storage Task]]></category>
		<category><![CDATA[SSIS Azure Blob Storage Task]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[azure]]></category>
		<category><![CDATA[s3]]></category>
		<category><![CDATA[ssis]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=6107</guid>

					<description><![CDATA[<p>Introduction In this post we will see how to set Metadata key/value in Azure Blob Storage Task and Amazon Storage Task (S3 Task). We will also see how to set them dynamically at runtime (Use SSIS Expression). Set Amazon S3 Task Metadata (Key / Value Pairs) Here is how you can set Metadata in Amazon [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/setting-metadata-key-value-ssis-amazon-s3-azure-storage-task/">Setting Metadata key / value in SSIS Amazon S3 / Azure Storage Task</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>In this post we will see how to set Metadata key/value in <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/">Azure Blob Storage Task</a> and <a href="https://zappysys.com/products/ssis-powerpack/ssis-amazon-s3-task/">Amazon Storage Task (S3 Task)</a>. We will also see how to set them dynamically at runtime (Use SSIS Expression).</p>
<div class="content_block" id="custom_post_widget-2523"><h2><span id="Prerequisites">Prerequisites</span></h2>
Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:
<ol style="margin-left: 1.5em;">
 	<li><abbr title="SQL Server Integration Services">SSIS</abbr> designer installed. Sometimes it is referred to as <abbr title="Business Intelligence Development Studio">BIDS</abbr> or <abbr title="SQL Server Data Tools">SSDT</abbr> (<a href="https://docs.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt" target="_blank" rel="noopener">download it from the Microsoft site</a>).</li>
 	<li>Basic knowledge of SSIS package development using <em>Microsoft SQL Server Integration Services</em>.</li>
 	<li>Make sure <span style="text-decoration: underline;"><a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a></span> is installed (<a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">download it</a>, if you haven't already).</li>
 	<li>(<em>Optional step</em>)<em>.</em> <a href="https://zappysys.zendesk.com/hc/en-us/articles/360035974593" target="_blank" rel="noopener">Read this article</a>, if you are planning to deploy packages to a server and schedule their execution later.</li>
</ol></div>
<h2>Set Amazon S3 Task Metadata (Key / Value Pairs)</h2>
<p>Here is how you can set Metadata in Amazon S3 Task.</p>
<div style="width: 525px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="figureimage" src="https://zappysys.com/onlinehelp/ssis-powerpack/scr/images/amazon-s3-task/ui-amazon-s3-task-metadata.png" alt="Setting Amazon S3 Metadata (Key/Value Pairs) in SSIS Amazon Storage Task" width="515" height="333" /><p class="wp-caption-text">Setting Amazon S3 Metadata (Key/Value Pairs) in SSIS Amazon Storage Task</p></div>
<h2>Set Azure Blob Storage Task Metadata (Key / Value Pairs)</h2>
<p>Just like S3 Task you can use same UI in Azure blob storage task too.</p>
<h2>Set Metadata Key/Value Dynamically (SSIS Expression)</h2>
<p>So far you have set metadata using static value. What if you have to set Dynamically at runtime?</p>
<p>Basically Metadata is passed as XML Format in the task like below.</p><pre class="crayon-plain-tag">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;ArrayOfStringKeyValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
	&lt;StringKeyValue&gt;
		&lt;Key&gt;x-amz-key1&lt;/Key&gt;
		&lt;Value&gt;AAAAAAA&lt;/Value&gt;
	&lt;/StringKeyValue&gt;
	&lt;StringKeyValue&gt;
		&lt;Key&gt;x-amz-key2&lt;/Key&gt;
		&lt;Value&gt;BBBBBBB&lt;/Value&gt;
	&lt;/StringKeyValue&gt;	
&lt;/ArrayOfStringKeyValue&gt;</pre><p>
Whate we will do is take above format and make it dynamic using SSIS Expression.</p>
<p>Perform the following steps for that.</p>
<ol>
<li>Select your Amazon Storage Task or Azure Storage Task and right click &gt; Select Properties.</li>
<li>In the Properties Grid check Property name MetadataKeyValue. Copy XML Value from there (We will use it in expression)</li>
<li>Now double click Amazon Storage Task or Azure Storage Task</li>
<li>Click on Expression Button</li>
<li>Select MetadataKeyValue property and for Value enter below expression&#8230; Use previously copied XML text  and change Value part with your own SSIS variable. In below example we are passing Just one Metadata Key/Value pair ( Name=x-amz-meta-filename  , Value=Coming from @[User::MyFileNameVariable] )<br />
Note that we have escaped double quote with <pre class="crayon-plain-tag">\"</pre>  and replaced static value with <pre class="crayon-plain-tag">&lt;Value&gt;" + @[User::MyFileNameVariable] + "&lt;/Value&gt;</pre> .<br />
<pre class="crayon-plain-tag">"&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;"
+ "&lt;ArrayOfStringKeyValue xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"&gt;"
+ "	&lt;StringKeyValue&gt;"
+ "		&lt;Key&gt;x-amz-meta-file-name&lt;/Key&gt;"
+ "		&lt;Value&gt;" + @[User::MyFileNameVariable] + "&lt;/Value&gt;"
+ "	&lt;/StringKeyValue&gt;"
+ "	&lt;StringKeyValue&gt;"
+ "		&lt;Key&gt;x-amz-meta-something&lt;/Key&gt;"
+ "		&lt;Value&gt;BBBBBBB&lt;/Value&gt;"
+ "	&lt;/StringKeyValue&gt;"	
+ "&lt;/ArrayOfStringKeyValue&gt;"</pre>
<div id="attachment_6108" style="width: 1090px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2019/01/ssis-amazon-s3-storage-metadata-dynamic-expression.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6108" class="size-full wp-image-6108" src="https://zappysys.com/blog/wp-content/uploads/2019/01/ssis-amazon-s3-storage-metadata-dynamic-expression.png" alt="Set Amazon S3 File Metadata Key/Value dynamically" width="1080" height="892" srcset="https://zappysys.com/blog/wp-content/uploads/2019/01/ssis-amazon-s3-storage-metadata-dynamic-expression.png 1080w, https://zappysys.com/blog/wp-content/uploads/2019/01/ssis-amazon-s3-storage-metadata-dynamic-expression-300x248.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/01/ssis-amazon-s3-storage-metadata-dynamic-expression-768x634.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/01/ssis-amazon-s3-storage-metadata-dynamic-expression-1024x846.png 1024w" sizes="(max-width: 1080px) 100vw, 1080px" /></a><p id="caption-attachment-6108" class="wp-caption-text">Set Amazon S3 File Metadata Key/Value dynamically</p></div></li>
<li> Click OK and that&#8217;s it.</li>
</ol>
<p>The post <a href="https://zappysys.com/blog/setting-metadata-key-value-ssis-amazon-s3-azure-storage-task/">Setting Metadata key / value in SSIS Amazon S3 / Azure Storage Task</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SSIS Data Load &#8211; SQL Server to Azure Blob (Split Files, GZip)</title>
		<link>https://zappysys.com/blog/ssis-data-load-sql-server-azure-blob-split-files-gzip/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Mon, 29 Oct 2018 19:58:19 +0000</pubDate>
				<category><![CDATA[SSIS Azure Blob CSV Destination]]></category>
		<category><![CDATA[SSIS Azure Blob Storage Task]]></category>
		<category><![CDATA[SSIS CSV Export Task]]></category>
		<category><![CDATA[azure]]></category>
		<category><![CDATA[azure blob storage]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[gzip]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=5257</guid>

					<description><![CDATA[<p>Introduction In this blog post you will see how easy it is to load large amount of data from SQL Server to Azure Blob Storage using SSIS. We will export / compress data to multiple files. For demo purpose we will use SQL Server as relational source but you can use same steps for any [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/ssis-data-load-sql-server-azure-blob-split-files-gzip/">SSIS Data Load &#8211; SQL Server to Azure Blob (Split Files, GZip)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>In this blog post you will see how easy it is to load large amount of data from SQL Server to Azure Blob Storage using SSIS. We will export / compress data to multiple files.</p>
<p>For demo purpose we will use SQL Server as relational source but you can use same steps for any database engine such as Oracle, MySQL, DB2. In this post we will use <a href="//zappysys.com/products/ssis-powerpack/ssis-export-csv-file-task/" target="_blank" rel="noopener">Export CSV Task</a> and <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">Azure Blob Storage Task </a> to achieve desired integration with Azure Blob with drag and drop approach. You can also export JSON or XML data to Azure Blob using same techniques (Use <a href="//zappysys.com/products/ssis-powerpack/ssis-export-json-file-task/" target="_blank" rel="noopener">Export JSON Task</a>  or <a href="//zappysys.com/products/ssis-powerpack/ssis-export-xml-file-task/" target="_blank" rel="noopener">Export XML Task</a> ).</p>
<p>Our goal is to achieve following things</p>
<ul>
<li>Extract large amount of data from SQL Server Table or Query and export to CSV files</li>
<li>Generate CSV files in compressed format (*.gz) to speedup upload and save data transfer cost to Azure</li>
<li>Split CSV files by row count</li>
<li>Upload data to Azure Blob using highly parallel manner for maximum speed</li>
</ul>
<p>There are three different ways you can achieve data export to Azure Blob using SSIS.</p>
<ol>
<li><strong>Method-1 (Fastest)</strong>: Use two step process (First export SQL Server data to local files using <a href="//zappysys.com/products/ssis-powerpack/ssis-export-csv-file-task/" target="_blank" rel="noopener">Export Task</a> and then upload files to Azure using  <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">Azure Blob Storage Task </a> )</li>
<li><strong>Method-2 (Slower)</strong>: Use <a href="//zappysys.com/products/ssis-powerpack/ssis-export-csv-file-task/" target="_blank" rel="noopener">Export Task</a> with Azure Blob Connection as Target rather than save to Local files.</li>
<li><strong>Method-3 (Slower)</strong>: Use Data flow components like <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-destination-csv-file-write-blob-storage/" target="_blank" rel="noopener">Azure Blob Destination for CSV</a>  (for JSON / XML  use Method1 or Method2)</li>
</ol>
<p>Each method has its own advantage / disadvantage. If you prefer to upload / compress / split large amount of data then we recommend Method#1 (Two steps). If you have not very huge dataset then you can use Method#2 or Method#3. For Last method you can only use CSV export option (we don&#8217;t have JSON/ XML Destination for Azure Blob yet &#8211; we may add in future)</p>
<p><strong>Screenshot of SSIS Package</strong></p>
<div id="attachment_707" style="width: 835px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-export-sql-server-data-upload-to-amazon-s3.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-707" class="wp-image-707 size-full" src="https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-export-sql-server-data-upload-to-amazon-s3.png" alt="Extract SQL Server Data to CSV files in SSIS (Bulk export) Split / GZip Compress / upload files to Azure Blob Storage" width="825" height="430" srcset="https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-export-sql-server-data-upload-to-amazon-s3.png 825w, https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-export-sql-server-data-upload-to-amazon-s3-300x156.png 300w" sizes="(max-width: 825px) 100vw, 825px" /></a><p id="caption-attachment-707" class="wp-caption-text">Extract SQL Server Data to CSV files in SSIS (Bulk export) Split / GZip Compress / upload files to Azure Blob Storage</p></div>
<h2>Method-1 : Upload SQL data to Azure Blob in Two steps</h2>
<p>In this section we will see first method (recommended) to upload SQL data to Azure Blob. This is the fastest approach if you have lots of data to upload.  In this approach we first create CSV files from SQL Server data on local disk using <a href="https://zappysys.com/products/ssis-powerpack/ssis-export-csv-file-task/" target="_blank" rel="noopener">SSIS Export CSV Task</a>. After that in second step we upload all files to Azure Blob using <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">SSIS Azure Storage Task</a>.</p>
<h3>Step-1: Configure Source Connection in Export CSV Task</h3>
<p>To extract data from SQL Server you can use Export CSV Task. It has many options which makes it possible to split large amount of data into multiple files. You can specify single table or multiple tables as your data source.</p>
<p>For multiple table use vertical bar. e.g.  dbo.Customers|dbo.Products|dbo.Orders. When you export this it will create 3 files ( dbo.Customers.csv , dbo.Products.csv, dbo.Orders.csv )</p>
<p><strong>Steps:</strong></p>
<ol>
<li>Drag ZS Export CSV Task from Toolbox</li>
<li>Double click task to configure</li>
<li>From connection drop down select New connection option (OLEDB or ADO.net)</li>
<li>Once connection is configured for Source database specify SQL Query to extract data as below
<div id="attachment_705" style="width: 528px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2016/07/export-sql-server-table-query-data-to-csv-fast.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-705" class="size-full wp-image-705" src="//zappysys.com/blog/wp-content/uploads/2016/07/export-sql-server-table-query-data-to-csv-fast.png" alt="Export SQL Server Table or Query as CSV file (Bulk export in SSIS)" width="518" height="494" srcset="https://zappysys.com/blog/wp-content/uploads/2016/07/export-sql-server-table-query-data-to-csv-fast.png 518w, https://zappysys.com/blog/wp-content/uploads/2016/07/export-sql-server-table-query-data-to-csv-fast-300x286.png 300w" sizes="(max-width: 518px) 100vw, 518px" /></a><p id="caption-attachment-705" class="wp-caption-text">Export SQL Server Table or Query as CSV file (Bulk export in SSIS)</p></div></li>
<li>Now go to target tab. Here you can specify full path for file. e.g. c:\ssis\temp\azure\cust.csv</li>
</ol>
<h3>Step-2: Compress CSV Files in SSIS ( GZIP format &#8211; *.gz )</h3>
<p>Above steps will export file as CSV format without splitting or compression. But to compress file once exported you can go to Target tab of Export CSV Task and check [<strong>Compress file to *.gz format</strong>] option.</p>
<div id="attachment_706" style="width: 579px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2016/07/compress-csv-files-in-ssis.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-706" class="size-full wp-image-706" src="//zappysys.com/blog/wp-content/uploads/2016/07/compress-csv-files-in-ssis.png" alt="Compress exported SQL Server data files to GZip ( *.gz) in SSIS Export CSV Task" width="569" height="462" srcset="https://zappysys.com/blog/wp-content/uploads/2016/07/compress-csv-files-in-ssis.png 569w, https://zappysys.com/blog/wp-content/uploads/2016/07/compress-csv-files-in-ssis-300x244.png 300w" sizes="(max-width: 569px) 100vw, 569px" /></a><p id="caption-attachment-706" class="wp-caption-text">Compress exported SQL Server data files to GZip ( *.gz) in SSIS Export CSV Task</p></div>
<h3>Step-3: Split CSV files by row count or data size in SSIS</h3>
<p>Now lets look at how to split exported CSV files into multiple files so we can upload many files in parallel. Goto Split Options and check [<strong>Enable Split by Size/Rows</strong>]
<div id="attachment_708" style="width: 435px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2016/07/ssis-export-split-csv-files-sql-data.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-708" class="size-full wp-image-708" src="//zappysys.com/blog/wp-content/uploads/2016/07/ssis-export-split-csv-files-sql-data.png" alt="Using SSIS Split Exported CSV files (Split by row count or size)" width="425" height="489" srcset="https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-export-split-csv-files-sql-data.png 425w, https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-export-split-csv-files-sql-data-261x300.png 261w" sizes="(max-width: 425px) 100vw, 425px" /></a><p id="caption-attachment-708" class="wp-caption-text">Using SSIS Split Exported CSV files (Split by row count or size)</p></div>
<h3>Step-4: Upload CSV files to Azure Blob &#8211; Using multi threaded option</h3>
<p>Now final thing is use <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">Azure Storage Task</a> to upload files to Azure.</p>
<p><strong>Steps:</strong></p>
<ol>
<li>Drag ZS Azure Storage Task from SSIS toolbox</li>
<li>Double click Azure Storage Task to configure it</li>
<li>Specify Action = UploadFilesToAzure</li>
<li>Specify Source file path (or pattern) e.g. c:\SSIS\temp\azure\*.*</li>
<li>Now in the Target connection dropdown click [New]</li>
<li>When Connection UI opens Enter your Account, Secret Key (Leave all other parameters default if you not sure)</li>
<li>Click Test and close connection UI</li>
<li>On the Target path on Azure Storage Task enter your bucket and folder path where you want to upload local files. For example your container name is bw-east-1 and folder is sqldata then enter as below<br />
<strong>bw-east-1/sqldata/</strong></li>
<li>Click ok and Run package to test full package</li>
</ol>
<h2>Method-2 : Upload SQL data to Azure Blob without local stage (One step)</h2>
<p>Now let&#8217;s change previous approach little bit to send SQL server data directly to Azure Blob without any Landing area on local disk.  <a href="//zappysys.com/products/ssis-powerpack/ssis-export-csv-file-task/" target="_blank" rel="noopener">Export CSV Task</a> , <a href="//zappysys.com/products/ssis-powerpack/ssis-export-json-file-task/" target="_blank" rel="noopener">Export JSON Task</a>  and <a href="//zappysys.com/products/ssis-powerpack/ssis-export-xml-file-task/" target="_blank" rel="noopener">Export XML Task</a> all of them supports Azure Blob / Azure Blob and Secure FTP (SFTP) connection as target (Only available in <strong>Pro Edition</strong>). We will use this feature in following section.</p>
<p>This approach helps to avoid any local disk need and it may be useful for security reason for some users. However drawback of this approach is, it wont use parallel threads to upload large amount of data like previous method.</p>
<p>Following change will be needed on Export task to upload SQL data directly to Azure / FTP or Azure storage.</p>
<div id="attachment_5252" style="width: 859px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-export-sql-data-to-s3-csv-compress-gzip.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-5252" class="size-full wp-image-5252" src="https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-export-sql-data-to-s3-csv-compress-gzip.png" alt="Export SQL data to multiple files to Azure Blob, Azure, Secure FTP (SFTP) in Stream Mode. Compress GZip, Overwrite, Split Options" width="849" height="627" srcset="https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-export-sql-data-to-s3-csv-compress-gzip.png 849w, https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-export-sql-data-to-s3-csv-compress-gzip-300x222.png 300w, https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-export-sql-data-to-s3-csv-compress-gzip-768x567.png 768w" sizes="(max-width: 849px) 100vw, 849px" /></a><p id="caption-attachment-5252" class="wp-caption-text">Export SQL data to multiple files to Azure Blob, Amazon S3, Secure FTP (SFTP) in Stream Mode using SSIS. Configure Compress GZip, Overwrite, Split Options</p></div>
<h2>Method-3 : Using Azure Blob destination &#8211; Generate Azure Blob file from any source</h2>
<p>Now let&#8217;s look at third approach to save data from any SSIS Source to Azure Blob file. Advantage of this approach is you are not limited to few source options provided by Export CSV Task. If you have complex data transformation needed in Data Flow before sending data to Azure then use this approach.  We will use <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-destination-csv-file-write-blob-storage/" target="_blank" rel="noopener">Azure Blob Destination for CSV</a> as below</p>
<ol>
<li>Drag SSIS Data flow task from toolbox</li>
<li>Create necessary source connection (e.g. OLEDB connection)</li>
<li>Create Azure Blob Connection (Right click in Connection Managers panel in bottom and click New connection and select <strong>ZS-Azure-STORAGE</strong> type )</li>
<li>Once connection managers are created Go to data flow designer and Drag OLEDB Source</li>
<li>Configure OLEDB Source to read desired data from source system (e.g. SQL Server / Oracle)</li>
<li>Once source is configured drag <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-destination-csv-file-write-blob-storage/" target="_blank" rel="noopener">ZS Azure Blob CSV File Destination</a> from SSIS toolbox</li>
<li>Double click Azure Destination and configure as below
<ol>
<li>On Connection Managers tab select Azure Connection (We created in earlier section).</li>
<li>Properties tab configure like below screenshot</li>
<li>On Input Columns tab select desired column you like to write in the target file. Your name from upstream will be taken as is for target file. So make sure to name upstream columns correctly.</li>
<li>Click OK to save UI</li>
</ol>
</li>
<li>Execute package and check your Azure Bucket to see files got created.</li>
</ol>
<div id="attachment_5253" style="width: 729px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-amazon-s3-csv-destination-split-compress-gzip-options.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-5253" class="size-full wp-image-5253" src="https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-amazon-s3-csv-destination-split-compress-gzip-options.png" alt="Loading SQL Server data into Azure Blob Container (Split, Compress Gzip Options) - SSIS Azure Blob CSV File Destination" width="719" height="782" srcset="https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-amazon-s3-csv-destination-split-compress-gzip-options.png 719w, https://zappysys.com/blog/wp-content/uploads/2016/07/ssis-amazon-s3-csv-destination-split-compress-gzip-options-276x300.png 276w" sizes="(max-width: 719px) 100vw, 719px" /></a><p id="caption-attachment-5253" class="wp-caption-text">Loading SQL Server data into Azure Container Files (Split, Compress Gzip Options) &#8211; SSIS Azure Blob CSV File Destination</p></div>
<h2>Conclusion</h2>
<p>In this post you have seen how easy it is to upload / archive your SQL Server data (or any other RDBMS data) to Azure Blob Storage in few clicks. <a href="//zappysys.com/products/ssis-powerpack/">Try SSIS PowerPack</a> for free and find out yourself how easy it is to integrate SQL Server and Azure Blob using SSIS.</p>
<p>The post <a href="https://zappysys.com/blog/ssis-data-load-sql-server-azure-blob-split-files-gzip/">SSIS Data Load &#8211; SQL Server to Azure Blob (Split Files, GZip)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to download files from Azure Blob Storage in SSIS</title>
		<link>https://zappysys.com/blog/how-to-download-files-from-azure-blob-storage-in-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Wed, 18 Apr 2018 12:27:58 +0000</pubDate>
				<category><![CDATA[SSIS Azure Blob Storage Task]]></category>
		<category><![CDATA[azure]]></category>
		<category><![CDATA[azure blob storage]]></category>
		<category><![CDATA[ssis]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=3202</guid>

					<description><![CDATA[<p>Introduction &#160; In this blog, we will show how to download files from Azure Blob Storage using SSIS. To illustrate, we will use ZappySys SSIS PowerPack, which includes several tasks to import/export data from multiples sources to multiple destinations like flat files, Azure, AWS, databases, Office files and more. They are Coding free, drag and drop high-performance suite of Custom SSIS [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/how-to-download-files-from-azure-blob-storage-in-ssis/">How to download files from Azure Blob Storage in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/Microsoft-Azure-Logo.png"><img loading="lazy" decoding="async" class="wp-image-3789 alignleft" src="https://zappysys.com/blog/wp-content/uploads/2018/04/Microsoft-Azure-Logo.png" alt="Microsoft-Azure-Logo" width="150" height="150" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/Microsoft-Azure-Logo.png 500w, https://zappysys.com/blog/wp-content/uploads/2018/04/Microsoft-Azure-Logo-150x150.png 150w, https://zappysys.com/blog/wp-content/uploads/2018/04/Microsoft-Azure-Logo-300x300.png 300w" sizes="(max-width: 150px) 100vw, 150px" /></a></p>
<p>&nbsp;</p>
<p>In this blog, we will show how to <strong>download files</strong> from <strong>Azure Blob Storage using SSIS</strong>. To illustrate, we will use <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a>, which includes several tasks to import/export data from multiples sources to multiple destinations like flat files, Azure, AWS, databases, Office files and more. They are Coding free, drag and drop high-performance suite of <em>Custom SSIS Components</em> and <em>SSIS Tasks</em></p>
<h2></h2>
<h2><span id="Requirements"><br />
Prerequisite<br />
</span></h2>
<ol>
<li>First, you will need to have SSIS installed</li>
<li>Secondly, make sure to have SSDT</li>
<li>Download and install <a href="https://go.microsoft.com/fwlink/?LinkId=717179&amp;clcid=0x4009">Microsoft Azure Storage Emulator</a></li>
<li>Download and install <a href="https://azure.microsoft.com/en-us/features/storage-explorer/">Microsoft Azure Storage Explorer</a></li>
<li>Finally, do not forget to install ZappySys <a href="https://zappysys.com/products/ssis-powerpack/">SSIS PowerPack</a></li>
</ol>
<h2>What is Azure Blob Storage</h2>
<p>Azure Blob storage is Microsoft&#8217;s object storage solution for the cloud. you can store large amounts of unstructured data, such as text or binary data. Blob storage discloses three resources:</p>
<ul>
<li>storage account (You can access data objects in Azure Storage through a storage account.<br />
For more information, <a href="https://docs.microsoft.com/en-us/azure/storage/common/storage-create-storage-account">click here</a>.)</li>
<li>the containers in the account(constructs a set of blobs, it is similar to a folder in a file system.<br />
All blobs lie within a container, <strong>Note:</strong> Container name must be lowercase)</li>
<li>the blobs in a container. (Azure Storage offers three types of blobs: block blobs, append blobs, and <a href="https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-pageblob-overview">page blobs</a>)<br />
See the below-attached diagram. It shows the relationship between these resources.<br />
<a href="https://zappysys.com/blog/wp-content/uploads/2018/04/blob1.png"><img loading="lazy" decoding="async" class=" wp-image-3569 alignleft" src="https://zappysys.com/blog/wp-content/uploads/2018/04/blob1-300x152.png" alt="" width="258" height="131" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/blob1-300x152.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/blob1.png 329w" sizes="(max-width: 258px) 100vw, 258px" /></a>     You can also use Azure Storage Explorer on your Local machine. Azure Storage Explorer is a standalone app that enables you to easily work with Azure Storage data on Windows, macOS, and Linux. You can use Blob storage to expose data publicly to the world or to store application data privately. <a href="https://docs.microsoft.com/en-us/azure/vs-azure-tools-storage-manage-with-storage-explorer#connect-to-a-storage-account-or-service">Connect to an Azure storage account or service</a></li>
</ul>
<h2></h2>
<p>&nbsp;</p>
<h2>Getting Started</h2>
<p>In order to start, we will show several examples. ZappySys includes an <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/">SSIS Azure Blob Storage Task</a> that will help you in Download File from Azure Blob to the Local machine, Upload files(s) to Azure Blob Storage. It will also support Delete, Rename, List, Get Property, Copy, Move, Create, Set Permission … and many more operations. Here we are showing you is, How to download files from Azure Blob Storage.</p>
<p>You can connect to your Azure Storage Account by entering your storage account credentials. Here I am showing an example of the use of local Azure Storage Emulator.</p>
<p>&nbsp;</p>
<h2>Setup necessary client tools</h2>
<ol>
<li>Once you have <a href="https://go.microsoft.com/fwlink/?LinkId=717179&amp;clcid=0x4009">downloaded and installed storage emulator</a> You can launch Microsoft Azure Storage Emulator from its Physical location or from the desktop or start menu shortcut.
<div id="attachment_3631" style="width: 869px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3631" class="wp-image-3631 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location.png" alt="Microsoft Azure Storage Emulator Physical Location" width="859" height="94" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location.png 859w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location-300x33.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-location-768x84.png 768w" sizes="(max-width: 859px) 100vw, 859px" /></a><p id="caption-attachment-3631" class="wp-caption-text">Microsoft Azure Storage Emulator Physical Location</p></div></li>
<li>If You can see the below-attached Command Prompt screen after Emulator started. Then you can proceed to start Microsoft Azure Storage Explorer as the Azure Storage Emulator is started successfully.
<div id="attachment_3633" style="width: 982px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-screen-after-started.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3633" class="wp-image-3633 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-emulator-screen-after-started.png" alt="Command Prompt Screen after Microsoft Azure Storage Emulator Started" width="972" height="329" /></a><p id="caption-attachment-3633" class="wp-caption-text">Command Prompt Screen after Microsoft Azure Storage Emulator Started</p></div></li>
<li>Now, You have to <a href="https://azure.microsoft.com/en-us/features/storage-explorer/">download and install Microsoft Azure Storage Explorer</a> and then You can launch Microsoft Azure Storage Explorer from its Physical location or from the desktop or start menu shortcut.
<div id="attachment_3635" style="width: 837px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3635" class="wp-image-3635 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location.png" alt="Microsoft Azure Storage Explorer Physical Location" width="827" height="97" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location.png 827w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location-300x35.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-location-768x90.png 768w" sizes="(max-width: 827px) 100vw, 827px" /></a><p id="caption-attachment-3635" class="wp-caption-text">Microsoft Azure Storage Explorer Physical Location</p></div></li>
</ol>
<h2>Create Blob Container</h2>
<p>For Creating a Blob Container, First of all, you need to go to Microsoft Storage Explorer Window. Then you can go through like this way (Storage Accounts &#8211;&gt; (Development) &#8211;&gt; Blob Containers).</p>
<div id="attachment_3637" style="width: 1178px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3637" class="wp-image-3637 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-blob-container.png" alt="Microsoft Azure Storage Explorer: Create Blob Container" width="1168" height="584" /></a><p id="caption-attachment-3637" class="wp-caption-text">Microsoft Azure Storage Explorer: Create Blob Container</p></div>
<p>you can also create a Virtual Directory under it. A Virtual Directory does not actually exist in Azure until you paste, drag or upload blobs into it.</p>
<div id="attachment_3638" style="width: 1173px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3638" class="wp-image-3638 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container.png" alt="Creating the new Virtual Directory under Blob Container" width="1163" height="851" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container.png 1163w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-300x220.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-768x562.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/04/microsoft-azure-storage-explorer-create-new-virtual-directory-under-blob-container-1024x749.png 1024w" sizes="(max-width: 1163px) 100vw, 1163px" /></a><p id="caption-attachment-3638" class="wp-caption-text">Creating the new Virtual Directory under Blob Container</p></div>
<h2>Download Files from Azure Blob Storage</h2>
<p>Let´s start with an example. In this SSIS Azure Blob Storage task example, we will show how to download files from Azure Blob Storage to local folders.</p>
<ol>
<li>First of All, Goto Control Flow Section, Drag and Drop ZS Azure Blob Storage Task from the SSIS Toolbox.
<div id="attachment_3639" style="width: 613px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3639" class="wp-image-3639 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task.png" alt="Drag and Drop Azure Blob Storage Task" width="603" height="271" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task.png 603w, https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task-300x135.png 300w" sizes="(max-width: 603px) 100vw, 603px" /></a><p id="caption-attachment-3639" class="wp-caption-text">Drag and Drop Azure Blob Storage Task</p></div></li>
<li>Double click on that Task to Edit the Configurations. You can see the Storage Action DropDown. It has many actions listed. you can do all that things with the use of this Task also, Create a connection
<div id="attachment_3640" style="width: 708px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-lists-all-storage-actions.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3640" class="wp-image-3640 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-lists-all-storage-actions.png" alt="Azure Blob Storage Task with Listing of All Storage Action" width="698" height="696" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-lists-all-storage-actions.png 698w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-lists-all-storage-actions-150x150.png 150w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-lists-all-storage-actions-300x300.png 300w" sizes="(max-width: 698px) 100vw, 698px" /></a><p id="caption-attachment-3640" class="wp-caption-text">Azure Blob Storage Task with Listing of All Storage Action</p></div>
<div id="attachment_3641" style="width: 945px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task-create-new-connection.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3641" class="wp-image-3641 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task-create-new-connection.png" alt="How to Set Connection: Create New Connection" width="935" height="694" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task-create-new-connection.png 935w, https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task-create-new-connection-300x223.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/zs-azure-blob-storage-task-create-new-connection-768x570.png 768w" sizes="(max-width: 935px) 100vw, 935px" /></a><p id="caption-attachment-3641" class="wp-caption-text">How to Set Connection: Create New Connection</p></div></li>
<li>Connection Window: Configure the necessary settings and hit Test Connection button
<div id="attachment_3642" style="width: 631px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-account-connection-screen.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3642" class="wp-image-3642 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-account-connection-screen.png" alt="Connection Form of Azure Blob Storage Account" width="621" height="542" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-account-connection-screen.png 621w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-account-connection-screen-300x262.png 300w" sizes="(max-width: 621px) 100vw, 621px" /></a><p id="caption-attachment-3642" class="wp-caption-text">Connection Form of Azure Blob Storage Account</p></div></li>
<li>Now, Set the Path Variable by Selecting Existing Variable OR Creating a New Variable.
<div id="attachment_3644" style="width: 702px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-select-path-variable-option.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3644" class="wp-image-3644 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-select-path-variable-option.png" alt="Select Path Variable Option" width="692" height="692" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-select-path-variable-option.png 692w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-select-path-variable-option-150x150.png 150w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-select-path-variable-option-300x300.png 300w" sizes="(max-width: 692px) 100vw, 692px" /></a><p id="caption-attachment-3644" class="wp-caption-text">Select Path Variable Option</p></div></li>
<li>Set Value in Variable: Specify FileName along with the Path. Select that Variable in Source Path Variable.
<div id="attachment_3645" style="width: 1572px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-set-variable-screen.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3645" class="wp-image-3645 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-set-variable-screen.png" alt="Set Variable by giving File Name with File Path" width="1562" height="116" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-set-variable-screen.png 1562w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-set-variable-screen-300x22.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-set-variable-screen-768x57.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-set-variable-screen-1024x76.png 1024w" sizes="(max-width: 1562px) 100vw, 1562px" /></a><p id="caption-attachment-3645" class="wp-caption-text">Set Variable by giving File Name with File Path</p></div></li>
<li>Now configure the Target Settings: Select Path AccessMode.
<div id="attachment_3646" style="width: 695px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-target-path-access-mode.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3646" class="wp-image-3646 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-target-path-access-mode.png" alt="Select Path Access Mode in Target Section" width="685" height="667" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-target-path-access-mode.png 685w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-target-path-access-mode-300x292.png 300w" sizes="(max-width: 685px) 100vw, 685px" /></a><p id="caption-attachment-3646" class="wp-caption-text">Select Path Access Mode in Target Section</p></div></li>
<li>We are selecting Connection as Path AccessMode. Creating new Connection:
<div id="attachment_3647" style="width: 1052px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-specify-file-connection-manager-usage-type.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3647" class="wp-image-3647 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-specify-file-connection-manager-usage-type.png" alt="Specify Usage Type in file Connection Manager" width="1042" height="665" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-specify-file-connection-manager-usage-type.png 1042w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-specify-file-connection-manager-usage-type-300x191.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-specify-file-connection-manager-usage-type-768x490.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-specify-file-connection-manager-usage-type-1024x654.png 1024w" sizes="(max-width: 1042px) 100vw, 1042px" /></a><p id="caption-attachment-3647" class="wp-caption-text">Specify Usage Type in file Connection Manager</p></div></li>
<li>After that just Specify the Target File with File Name and Path.</li>
<li>Then just select the OverWrite Action in the Target Section:
<div id="attachment_3649" style="width: 691px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-select-overwrite-action.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3649" class="wp-image-3649 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-select-overwrite-action.png" alt="Select Overwrite Action in Target Section" width="681" height="668" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-select-overwrite-action.png 681w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-select-overwrite-action-300x294.png 300w" sizes="(max-width: 681px) 100vw, 681px" /></a><p id="caption-attachment-3649" class="wp-caption-text">Select Overwrite Action in Target Section</p></div></li>
<li>you can mark checked the checkbox &#8220;Delete source file after successful transfer&#8221; If you want to delete the file which you are downloading from Blob Container after the successful downloading of that file.</li>
<li>You can also specify the Advanced Filter &amp; Sorting :
<div id="attachment_3650" style="width: 691px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-advanced-filter-and-sorting.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3650" class="wp-image-3650 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-advanced-filter-and-sorting.png" alt="Specify Advanced Filter and Sorting If you have requirements" width="681" height="661" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-advanced-filter-and-sorting.png 681w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-task-advanced-filter-and-sorting-300x291.png 300w" sizes="(max-width: 681px) 100vw, 681px" /></a><p id="caption-attachment-3650" class="wp-caption-text">Specify Advanced Filter and Sorting If you have requirements</p></div></li>
<li>After all the configurations settings are done, you can execute the Package.
<div id="attachment_3651" style="width: 1221px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-execution-screen.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3651" class="wp-image-3651 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-execution-screen.png" alt="A Package was Executed and the File Downloaded successfully " width="1211" height="244" srcset="https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-execution-screen.png 1211w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-execution-screen-300x60.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-execution-screen-768x155.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/04/azure-blob-storage-execution-screen-1024x206.png 1024w" sizes="(max-width: 1211px) 100vw, 1211px" /></a><p id="caption-attachment-3651" class="wp-caption-text">A Package was Executed and the File Downloaded successfully</p></div></li>
</ol>
<h2>Conclusion</h2>
<p>In this blog, we learned how to Download files from Azure Blob Storage using <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">SSIS PowerPack ZS Azure Blob Storage Task</a> in a very simple way. You can achieve many more functionalities with the use of this Task. Check our <a href="https://zappysys.com/blog/category/ssis/components/ssis-json-source/">Blog articles on Azure Blob Storage</a> to find out what <em>Azure Blob Storage task</em> is capable of more.</p>
<h2><span id="References">References</span></h2>
<p>Finally, you can use the following links for more information about Azure Blob Storage Task:</p>
<ul>
<li><a href="http://azure.microsoft.com/en-us/documentation/articles/storage-introduction/" target="_blank" rel="noopener">Introduction to Microsoft Azure Storage</a></li>
<li><a href="http://azure.microsoft.com/en-us/documentation/articles/storage-manage-storage-account/#regeneratestoragekeys" target="_blank" rel="noopener">How to: View, copy, and regenerate storage access keys</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/azure/hh403989.aspx" target="_blank" rel="noopener">Using the Azure Storage Emulator for Development and Testing</a></li>
<li>Lending Page: <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/">SSIS Azure Blob Storage Task</a> you can also find Tutorial Video here</li>
<li>Help File: Documentation of <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=azure-cloud-storage-task.htm">SSIS Azure Blob Storage Task</a></li>
</ul>
<p>&nbsp;</p>
<p>The post <a href="https://zappysys.com/blog/how-to-download-files-from-azure-blob-storage-in-ssis/">How to download files from Azure Blob Storage in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Using Regular Expressions in SSIS</title>
		<link>https://zappysys.com/blog/using-regular-expressions-in-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Wed, 07 Mar 2018 17:38:24 +0000</pubDate>
				<category><![CDATA[SSIS Advanced File System Task]]></category>
		<category><![CDATA[SSIS Amazon Storage Task]]></category>
		<category><![CDATA[SSIS Azure Blob Storage Task]]></category>
		<category><![CDATA[SSIS Regex Parser Task]]></category>
		<category><![CDATA[SSIS SFTP Task]]></category>
		<category><![CDATA[SSIS Tasks]]></category>
		<category><![CDATA[SSIS Tips & How-Tos]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[Regular Expression]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=2858</guid>

					<description><![CDATA[<p>Introduction In this short article, you will learn how to write Regular expressions in SSIS (i.e. Regex) and what tool to use to test them. You will also find helpful resources on how to write more sophisticated expressions and learn more about them. For demo purposes, we will use FREE SSIS Regex Parser Task to parse and [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/using-regular-expressions-in-ssis/">Using Regular Expressions in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis-regex-parser-task.png"><img loading="lazy" decoding="async" class=" wp-image-2974 alignleft" src="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis-regex-parser-task.png" alt="" width="114" height="114" /></a>In this short article, you will learn how to write Regular expressions in SSIS (i.e. Regex) and what tool to use to test them. You will also find helpful resources on how to write more sophisticated expressions and learn more about them. For demo purposes, we will use <strong>FREE</strong> <a href="https://zappysys.com/products/ssis-powerpack/ssis-regex-parser-task/" target="_blank" rel="noopener">SSIS Regex Parser Task</a> to parse and extract the text using Regex.</p>
<p>&nbsp;</p>
<p>You can use Regular expressions in several SSIS PowerPack connectors:</p>
<ul>
<li><a href="https://zappysys.com/products/ssis-powerpack/ssis-regex-parser-task/" target="_blank" rel="noopener">SSIS Regex Parser Task (FREE)</a>,</li>
<li><a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">Azure Blob Storage Task</a>,</li>
<li><a href="https://zappysys.com/products/ssis-powerpack/ssis-file-system-task-advanced/" target="_blank" rel="noopener">Advanced File System Task</a>,</li>
<li><a href="https://zappysys.com/products/ssis-powerpack/ssis-amazon-s3-task/" target="_blank" rel="noopener">Amazon S3 Storage Task</a> and others.</li>
</ul>
<h2>Writing Regular Expressions in SSIS</h2>
<p>Based on the SSIS component you use it will include the filename in filtering options or match the text: See below Syntax to write Regex in ZappySys tools. We support additional construct {{X, Y}} at the end of Regex to control two parameters. This additional construct is useful for data extracted from matching regex. If you want to Test patterns and not worry about data extraction then no need to use last {{<pre class="crayon-plain-tag">Occurance_Index</pre>, <pre class="crayon-plain-tag">Group_Index_Or_Name</pre>}}</p>
<p><strong>Syntax:</strong><br />
<pre class="crayon-plain-tag">&lt;your Regular Expression&gt;[{{Occurance_Index|*[,Group_Index_Or_Name]}}]</pre>
<p><strong>Where:</strong><br />
<pre class="crayon-plain-tag">Occurance_Index</pre>=Occurrence index you want to extract (X=0 means the first match) and * means all matches. Use a minus sign to get an occurrence from reverse (e.g. {{-0}} returns the last match)<br />
<pre class="crayon-plain-tag">Group_Index_Or_Name</pre>=Group index/name within your search pattern (Groups are indicated by parentheses in regular expression, Y=0 means first group). If you named your group in the pattern then you can use the Group name. To use Group Name you must use the new version (the old version doesn&#8217;t support this)</p>
<p><strong>How to name a group?</strong></p>
<p>E.g. (\w+)@(<strong>?&lt;domain&gt;</strong>\w+.com)</p>
<p><strong>How to use the group name in the match extract?</strong></p>
<p>E.g. (\w+)@(<strong>?&lt;domain&gt;</strong>\w+.com){{0,<strong>domain</strong>}}</p>
<p><strong>Example Input:</strong></p>
<p>Let&#8217;s assume we have the following input text. We will test various Expressions.</p><pre class="crayon-plain-tag">Customer =&gt; AAA
Email =&gt; aaa@google.com
Phone =&gt; 101-222-3333
========
Customer =&gt; BBB
Email =&gt; bbb@yahoo.com
Phone =&gt; 102-222-3333
========
Customer =&gt; CCC
Email =&gt; ccc@hotmail.com
Phone =&gt; 103-222-3333
========
Customer =&gt; DDD
Email =&gt; ddd@outlook.com
Phone =&gt; 104-222-3333</pre><p>
<strong>Sample Regex Expressions</strong></p>
<div class="su-table su-table-alternate">
<table style="border-collapse: collapse;width: 100%;height: 332px" border="1">
<tbody>
<tr style="height: 22px">
<td style="width: 50%;height: 22px"><strong>Expression</strong></td>
<td style="width: 50%;height: 22px"><strong>Description</strong></td>
</tr>
<tr style="height: 46px">
<td style="width: 50%;height: 46px">(?s).*</td>
<td style="width: 50%;height: 46px">Match anything including new lines. To match anything without new line just use <pre class="crayon-plain-tag">(.*)</pre></td>
</tr>
<tr style="height: 22px">
<td style="width: 50%;height: 22px">\w+([-+.&#8217;]\w+)*@(?&lt;domain&gt;\w+([-.]\w+)*\.\w+([-.]\w+)*)</td>
<td style="width: 50%;height: 22px">Get first email id from text ({{0}} is omitted from end because {{0}} id default)</td>
</tr>
<tr style="height: 22px">
<td style="width: 50%;height: 22px">\w+([-+.&#8217;]\w+)*@(?&lt;domain&gt;\w+([-.]\w+)*\.\w+([-.]\w+)*){{-0}}</td>
<td style="width: 50%;height: 22px">Get last email id from text</td>
</tr>
<tr style="height: 22px">
<td style="width: 50%;height: 22px">\w+([-+.&#8217;]\w+)*@(?&lt;domain&gt;\w+([-.]\w+)*\.\w+([-.]\w+)*){{*}}</td>
<td style="width: 50%;height: 22px">Get all email addresses (separate them with new line). When you suffix Regular expression with {{*}} it will return all matches.</td>
</tr>
<tr style="height: 22px">
<td style="width: 50%;height: 22px">\w+([-+.&#8217;]\w+)*@(?&lt;domain&gt;\w+([-.]\w+)*\.\w+([-.]\w+)*){{2}}</td>
<td style="width: 50%;height: 22px">Get third email id from text (i.e. ends with {{X}} where X is occurrence index starting from 0)</td>
</tr>
<tr style="height: 22px">
<td style="width: 50%;height: 22px">\w+([-+.&#8217;]\w+)*@(?&lt;domain&gt;\w+([-.]\w+)*\.\w+([-.]\w+)*){{0,2}}</td>
<td style="width: 50%;height: 22px">Get first email pattern match (i.e. Index=0) and extract domain (i.e. 2nd group). Index starting from 0 for occurrence and group</td>
</tr>
<tr style="height: 22px">
<td style="width: 50%;height: 22px">(\d*)-(\d*)-(\d*)</td>
<td style="width: 50%;height: 22px">Get first phone number from text (If you don&#8217;t include {{X,Y}} at the end then it will be always [0,0])</td>
</tr>
<tr style="height: 22px">
<td style="width: 50%;height: 22px">^((?!demo|test).)*$</td>
<td style="width: 50%;height: 22px">Match whole input text if it does not contain words like demo or test. If word found then No Match</td>
</tr>
<tr style="height: 22px">
<td style="width: 50%;height: 22px">&lt;tag&gt;((.|\n)*?)&lt;/tag&gt;{{0,1}}</td>
<td style="width: 50%;height: 22px">Extract anything between &lt;tag&gt;&#8230;&lt;/tag&gt; (Include new line char i.e. \n)</td>
</tr>
<tr style="height: 22px">
<td style="width: 50%;height: 22px">&lt;tag&gt;(.*)&lt;/tag&gt;{{0,1}}</td>
<td style="width: 50%;height: 22px">Extract anything between &lt;tag&gt;&#8230;&lt;/tag&gt; (Exclude new line char i.e. \n)</td>
</tr>
<tr style="height: 22px">
<td style="width: 50%;height: 22px">&lt;!\[CDATA\[((.|\n)*?)\]\]\&gt;{{0,1}}</td>
<td style="width: 50%;height: 22px">Extract content from CData section of XML Data (This can be CSV, JSON or nested XML )</td>
</tr>
<tr style="height: 22px">
<td style="width: 50%;height: 22px">^$</td>
<td style="width: 50%;height: 22px">Match blank string</td>
</tr>
</tbody>
</table>
</div>
<h2>More Regular Expression Examples</h2>
<div class="su-table su-table-alternate">
<table>
<tbody>
<tr>
<td style="width: 196px"><strong>Input Text</strong></td>
<td style="width: 223px"><strong>Regex</strong></td>
<td style="width: 163px"><strong>Matched text</strong></td>
<td style="width: 752px"><strong>Comment</strong></td>
</tr>
<tr>
<td style="width: 196px">&lt;row id=&#8221;123&#8243; process=&#8221;Y&#8221;&gt;</td>
<td style="width: 223px">id=&#8221;([^&#8221;]*)&#8221;{{0,1}}</td>
<td style="width: 163px"><strong>123</strong></td>
<td style="width: 752px">This expression shows how to extract group value (i.e. {{0,1}} &#8211; first match and 2nd group ). It extracts text between double quotes using <strong>[^&#8221;]*</strong> pattern , match anything until double quote is found.  {{0,1}} syntax is ZappySys specific so it may not work with other Regex engines.</td>
</tr>
<tr>
<td style="width: 196px">&lt;data&gt;123&lt;/data&gt;</td>
<td style="width: 223px">&lt;data&gt;([^&lt;]*)&lt;\/data&gt;{{0,1}}</td>
<td style="width: 163px"><strong>123</strong></td>
<td style="width: 752px">This expression shows how to extract group value (i.e. {{0,1}} &#8211; first match and 2nd group ). It extracts text between double quotes using <strong>[^&lt;]*</strong> pattern , match anything until <strong>&lt;</strong>  is found.  {{0,1}} syntax is ZappySys specific so it may not work with other Regex engines.</td>
</tr>
<tr>
<td style="width: 196px" valign="top">File_20180930_source.txt</td>
<td style="width: 223px" valign="top">File</td>
<td style="width: 163px" valign="top"><strong>File</strong></td>
<td style="width: 752px" valign="top">Will match text/filename that has &#8220;File&#8221; keyword in it.</td>
</tr>
<tr>
<td style="width: 196px" valign="top">File_20180930_SOURCE.dat<br />
File_20180930_source.dat</td>
<td style="width: 223px" valign="top">source|SOURCE</td>
<td style="width: 163px" valign="top"><strong>SOURCE</strong> and <strong>source</strong></td>
<td style="width: 752px" valign="top">Will match text/filenames that contain either &#8220;source&#8221; <strong>or</strong> &#8220;SOURCE&#8221; keyword.</td>
</tr>
<tr>
<td style="width: 196px" valign="top">File_20180930_source.txt</td>
<td style="width: 223px" valign="top">File.+source</td>
<td style="width: 163px" valign="top"><strong>File_20180930_source</strong></td>
<td style="width: 752px" valign="top">Will match text/filename that contains keyword that starts with &#8220;File&#8221; <strong>and</strong> ends with &#8220;source&#8221;.<br />
Basically, you can use this pattern if you want to match two keywords in the text that appear in particular order.</td>
</tr>
<tr>
<td style="width: 196px" valign="top">File_20180930_source.txt<br />
File_20180830_source.dat</td>
<td style="width: 223px" valign="top">\.txt$|\.dat$</td>
<td style="width: 163px" valign="top"><strong>.txt</strong> and <strong>.dat</strong></td>
<td style="width: 752px" valign="top">Will match text/all filenames that end with &#8220;.txt&#8221; <strong>or</strong> &#8220;.dat&#8221;.</td>
</tr>
<tr>
<td style="width: 196px" valign="top">File_20180930_source.txt<br />
file_20190102_source.txt</td>
<td style="width: 223px" valign="top">^(F|f)ile_\d{8}</td>
<td style="width: 163px" valign="top"><strong>File_20180930</strong><br />
<strong>file_20190102</strong></td>
<td style="width: 752px" valign="top">Will match text/filename that starts with &#8220;File_&#8221; <strong>or</strong> &#8220;file_&#8221; <strong>and</strong> then followed by 8 digits.</td>
</tr>
<tr>
<td style="width: 196px" valign="top">File_20180930_source.txt<br />
File_20190101_none.txt</td>
<td style="width: 223px" valign="top">(.+)_(.+)_(.+){{0,2}}</td>
<td style="width: 163px" valign="top"><strong>20180930</strong></td>
<td style="width: 752px" valign="top">Will match text that has three groups of text strings, separated by &#8220;_&#8221;.<br />
Non-Regex {{0,2}} notation will bring back second group (index &#8220;2&#8221;) of first match (index &#8220;0&#8221;).</td>
</tr>
<tr>
<td style="width: 196px">File_20180930_source.txt<br />
File_20190101_none.txt</td>
<td style="width: 223px">(.+)_(.+)_(.+){{1,2}}</td>
<td style="width: 163px"><strong>20190101</strong></td>
<td style="width: 752px">Will match text that has three groups of text strings, separated by &#8220;_&#8221;.<br />
Non-Regex {{1,2}} notation will bring back second group (index &#8220;2&#8221;) of second match (index &#8220;1&#8221;).</td>
</tr>
<tr>
<td style="width: 196px">File_20180930_source.txt<br />
File_20190101_none.txt</td>
<td style="width: 223px">(.+)_(.+)_(.+){{*,2}}</td>
<td style="width: 163px"><strong>20180930<br />
20190101<br />
</strong></td>
<td style="width: 752px">Will match text that has three groups of text strings, separated by &#8220;_&#8221;.<br />
Non-Regex {{*,2}} notation will bring back second group (index &#8220;2&#8221;) of all matches (index &#8220;*&#8221;). Returned matches are separated by \r\n</td>
</tr>
<tr>
<td style="width: 196px">&lt;html&gt;<br />
&lt;img src=&#8221;/img-1.png&#8221; /&gt;<br />
&lt;img src=&#8221;/img-2.png&#8221; /&gt;<br />
&lt;img src=&#8221;/img-3.png&#8221; /&gt;<br />
<span style="font-family: inherit;font-size: inherit">&lt;/html&gt;</span></td>
<td style="width: 223px">&lt;img[^&gt;]+src=&#8221;([^&#8221;&gt;]+)&#8221;{{*,1}}</td>
<td style="width: 163px"><strong>/img-1.png<br />
/img-2.png<br />
/img-3.png<br />
</strong></td>
<td style="width: 752px">Will return image URLs from HTML content. We used {{*,1}} means it will pull all occurrences and for each match it will extract first group (which is just src attribute value).</td>
</tr>
<tr>
<td style="width: 196px">null</td>
<td style="width: 223px">^((?!null\b).)*$</td>
<td style="width: 163px"><strong>&lt;blank&gt;</strong></td>
<td style="width: 752px">Returns blank if null word found (match all except null)</td>
</tr>
<tr>
<td style="width: 196px">black white</td>
<td style="width: 223px">^((?!red|blue|orange).)*$</td>
<td style="width: 163px"><strong>black white</strong></td>
<td style="width: 752px">Returns full string as is if any of those 3 words (i.e. red, blue, orange) not found anywhere in the string</td>
</tr>
<tr>
<td style="width: 196px">black white red</td>
<td style="width: 223px">^((?!red|blue|orange).)*$</td>
<td style="width: 163px"><strong>&lt;blank&gt;</strong></td>
<td style="width: 752px">Returns blank if any of those 3 words (i.e. red, blue, orange) found anywhere in the string</td>
</tr>
</tbody>
</table>
</div>
<h2>Regex Examples (Using SSIS Regular Expression Parser Task)</h2>
<p>Here is an example how Regex <pre class="crayon-plain-tag">(.+)_(.+)_(.+){{1,2}}</pre> works in <a href="https://zappysys.com/products/ssis-powerpack/ssis-regex-parser-task/" target="_blank" rel="noopener">Regular Expression Parser Task (FREE)</a>:</p>
<div id="attachment_2978" style="width: 742px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis_powerpack_regular_expression_parser_task.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2978" class="wp-image-2978 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis_powerpack_regular_expression_parser_task-e1520866478970.png" alt="Using Regular Expressions in SSIS Regex Parser Task (Extract Groups)" width="732" height="612" srcset="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis_powerpack_regular_expression_parser_task-e1520866478970.png 732w, https://zappysys.com/blog/wp-content/uploads/2018/03/ssis_powerpack_regular_expression_parser_task-e1520866478970-300x251.png 300w" sizes="(max-width: 732px) 100vw, 732px" /></a><p id="caption-attachment-2978" class="wp-caption-text">Using Regular Expressions in SSIS Regex Parser Task (Extract Groups)</p></div>
<h2>Using Groups / Occurrence Index</h2>
<p>Some tasks like <a href="https://zappysys.com/products/ssis-powerpack/ssis-regex-parser-task/" target="_blank" rel="noopener">SSIS Regex Parser Task (FREE)</a> supports extracting value from specific occurrence and specific part of matched pattern using special syntax at the end of your pattern (see below).</p><pre class="crayon-plain-tag">Your Regex Pattern Here{{OccuranceIndex,GroupIndex}}</pre><p>
<strong>Where :</strong><br />
OccuranceIndex is 0 based (0=extract first occurrence)<br />
GroupIndex is 0 based (0=extract first matching group from pattern. First group is always entire text. )</p>
<p>See above screenshot in previous section for example.</p>
<h2>Tools</h2>
<p>The best tool we&#8217;ve found to write and test Regex is <a href="http://regexhero.net/tester/" target="_blank" rel="noopener">Regex Hero</a> (will require IE with Silverlight if you want to use it online, in the browser):</p>
<p>Another great site for Regex testing is <a href="https://regex101.com" target="_blank" rel="noopener">https://regex101.com</a> (Works in any browser unlike previous one)</p>
<p>and few more sites as below</p>
<p><a href="http://www.regexr.com/" target="_blank" rel="noopener">http://www.regexr.com/</a><br />
<a href="http://www.regexlib.com/" target="_blank" rel="noopener">http://www.regexlib.com/</a><br />
<a href="http://www.regular-expressions.info/" target="_blank" rel="noopener">http://www.regular-expressions.info/</a></p>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis_powerpack_regular_expression_task_using_regex_hero.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2972" src="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis_powerpack_regular_expression_task_using_regex_hero.png" alt="" width="802" height="483" srcset="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis_powerpack_regular_expression_task_using_regex_hero.png 802w, https://zappysys.com/blog/wp-content/uploads/2018/03/ssis_powerpack_regular_expression_task_using_regex_hero-300x181.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/03/ssis_powerpack_regular_expression_task_using_regex_hero-768x463.png 768w" sizes="(max-width: 802px) 100vw, 802px" /></a></p>
<h2>Resources</h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2018/03/Regular-expressions-quick-reference.pdf">Regular Expressions cheat-sheet to hang on the wall</a></p>
<p><a href="http://www.rexegg.com/regex-quickstart.html" target="_blank" rel="noopener">Regular Expressions quick reference</a></p>
<p>&nbsp;</p>
<p>The post <a href="https://zappysys.com/blog/using-regular-expressions-in-ssis/">Using Regular Expressions in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Filter by file size, name, date for Amazon / Azure Storage SSIS Task</title>
		<link>https://zappysys.com/blog/advanced-path-filtering-for-amazon-azure-storage-ssis-task/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Fri, 21 Jul 2017 14:50:47 +0000</pubDate>
				<category><![CDATA[SSIS Amazon Storage Task]]></category>
		<category><![CDATA[SSIS Azure Blob Storage Task]]></category>
		<category><![CDATA[SSIS Tips & How-Tos]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[ssis amazon storage task]]></category>
		<category><![CDATA[ssis azure storage task]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<guid isPermaLink="false">http://zappysys.com/blog/?p=1590</guid>

					<description><![CDATA[<p>Introduction Sometimes you may need to make an advanced filtering on file path, file date, size etc in SSIS Amazon S3 Task or SSIS Azure Blob Storage Task . For example, you have a directory &#8220;Customers&#8220;, which contains client directories. Each of them contains a directory named &#8220;Invoices&#8220;, which is partitioned by year. E.g. &#8220;Customers/Microsoft/Invoices/2015&#8221;. So [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/advanced-path-filtering-for-amazon-azure-storage-ssis-task/">Filter by file size, name, date for Amazon / Azure Storage SSIS Task</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="//zappysys.com/blog/wp-content/uploads/2016/06/ssis-tip.png"><img loading="lazy" decoding="async" class="alignleft wp-image-1897" src="//zappysys.com/blog/wp-content/uploads/2016/06/ssis-tip.png" alt="" width="90" height="90" srcset="https://zappysys.com/blog/wp-content/uploads/2016/06/ssis-tip.png 180w, https://zappysys.com/blog/wp-content/uploads/2016/06/ssis-tip-150x150.png 150w" sizes="(max-width: 90px) 100vw, 90px" /></a></p>
<h2>Introduction</h2>
<p>Sometimes you may need to make an advanced filtering on file path, file date, size etc in <a href="https://zappysys.com/products/ssis-powerpack/ssis-amazon-s3-task/" target="_blank" rel="noopener">SSIS Amazon S3 Task</a> or <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">SSIS Azure Blob Storage Task</a> . For example, you have a directory &#8220;<em>Customers</em>&#8220;, which contains client directories. Each of them contains a directory named &#8220;<em>Invoices</em>&#8220;, which is partitioned by year. E.g. &#8220;Customers/Microsoft/Invoices/2015&#8221;. So if you want to get <em>all</em> invoices of <em>all</em> customers of <em>all</em> years, use <em>Advanced Filter &amp; Sorting </em>option and configure <em>Where</em> clause to use wildcards (*) like this:</p>
<div id="attachment_1591" style="width: 693px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2017/07/ssis-amazon-storage-task-and-azure-storage-task-to-get-file-list.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1591" class="wp-image-1591 size-full" src="//zappysys.com/blog/wp-content/uploads/2017/07/ssis-amazon-storage-task-and-azure-storage-task-to-get-file-list.jpg" alt="SSIS Amazon/Azure Storage Task – To get all invoices of all customers of all years, use Where clause FullPath LIKE 'Customers/*/Invoices/*'" width="683" height="665" srcset="https://zappysys.com/blog/wp-content/uploads/2017/07/ssis-amazon-storage-task-and-azure-storage-task-to-get-file-list.jpg 683w, https://zappysys.com/blog/wp-content/uploads/2017/07/ssis-amazon-storage-task-and-azure-storage-task-to-get-file-list-300x292.jpg 300w" sizes="(max-width: 683px) 100vw, 683px" /></a><p id="caption-attachment-1591" class="wp-caption-text">SSIS Amazon/Azure Storage Task – To get all invoices of all customers of all years, use this Where clause: <em>FullPath LIKE &#8216;Customers/*/Invoices/*&#8217;</em></p></div>
<p>&nbsp;</p>
<div class="content_block" id="custom_post_widget-2523"><h2><span id="Prerequisites">Prerequisites</span></h2>
Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:
<ol style="margin-left: 1.5em;">
 	<li><abbr title="SQL Server Integration Services">SSIS</abbr> designer installed. Sometimes it is referred to as <abbr title="Business Intelligence Development Studio">BIDS</abbr> or <abbr title="SQL Server Data Tools">SSDT</abbr> (<a href="https://docs.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt" target="_blank" rel="noopener">download it from the Microsoft site</a>).</li>
 	<li>Basic knowledge of SSIS package development using <em>Microsoft SQL Server Integration Services</em>.</li>
 	<li>Make sure <span style="text-decoration: underline;"><a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a></span> is installed (<a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">download it</a>, if you haven't already).</li>
 	<li>(<em>Optional step</em>)<em>.</em> <a href="https://zappysys.zendesk.com/hc/en-us/articles/360035974593" target="_blank" rel="noopener">Read this article</a>, if you are planning to deploy packages to a server and schedule their execution later.</li>
</ol></div>
<p>&nbsp;</p>
<h2><span id="Delete_Multiple_S3_files_8211Using_Advanced_Search_8211_Regex_SQL_Expression">Using Advanced Search – Regex / SQL Expression (Filter by file date, size, name)</span></h2>
<p>Sometimes it’s necessary to filter file based on advanced attributes such as file Age (How old), File Size, Multiple File Patterns (e.g. Delete *.zip, *.gz, *.rar in one action)</p>
<p>You can check <a href="https://zappysys.com/blog/ssis-delete-amazon-s3-file-folder-bucket/">this link</a> or <a href="https://zappysys.com/blog/get-list-of-files-and-folders-in-ssis-for-looping/">this link</a> for more information. For <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">Azure Blob Storage Task</a> its almost same UI.</p>
<p>You can use Advanced Tab to filter further. First supply primary filter on Source Tab (e.g. mybucket/*.* ) and then supply your advanced filter (e.g. you can exclude *.exe and *.msi file from your delete list as below screenshot, also only delete files between 1000 and 50000 bytes in file size).</p>
<p>&nbsp;</p>
<div id="attachment_4904" style="width: 612px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4904" class="wp-image-4904 size-full" style="border: 0px; max-width: 100%; height: auto; box-shadow: rgba(0, 0, 0, 0.176) 0px 1px 2px;" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple.png" alt="Delete Amazon S3 File (Multiple) using Wildcard pattern" width="602" height="360" data-attachment-id="4904" data-permalink="https://zappysys.com/blog/ssis-delete-amazon-s3-file-folder-bucket/ssis-delete-amazons3-file-multiple/#main" data-orig-file="https://i2.wp.com/zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple.png?fit=602%2C360&amp;ssl=1" data-orig-size="602,360" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="ssis-delete-amazons3-file-multiple" data-image-description="&lt;p&gt;Delete Amazon S3 File (Multiple) using Wildcard pattern&lt;/p&gt;" data-medium-file="https://i2.wp.com/zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple.png?fit=300%2C179&amp;ssl=1" data-large-file="https://i2.wp.com/zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple.png?fit=602%2C360&amp;ssl=1" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple.png 602w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple-300x179.png 300w" sizes="(max-width: 602px) 100vw, 602px" /></a><p id="caption-attachment-4904" class="wp-caption-text">Select / Delete Amazon S3 File (Multiple) using Wildcard pattern</p></div>
<p>&nbsp;</p>
<div class="wp-caption alignnone">
<div style="width: 678px" class="wp-caption alignnone"><img loading="lazy" decoding="async" src="https://i2.wp.com/zappysys.com/onlinehelp/ssis-powerpack/scr/images/amazon-s3-task/amazon-s3-file-file-advanced-search-regx-pattern.png?zoom=1.100000023841858&amp;resize=668%2C534&amp;ssl=1" srcset="https://i2.wp.com/zappysys.com/onlinehelp/ssis-powerpack/scr/images/amazon-s3-task/amazon-s3-file-file-advanced-search-regx-pattern.png?zoom=1.100000023841858&amp;resize=668%2C534&amp;ssl=1" alt="Advanced Search in SSIS Amazon S3 Task - Use Regular Expression Patterns, SQL like expression for Sort / Filter" width="668" height="534" /><p class="wp-caption-text">Advanced Search in SSIS Amazon S3 Task – Use Regular Expression Patterns, SQL like expression for Sort / Filter</p></div>
<p class="wp-caption-text">
</div>
</p><pre class="crayon-plain-tag">//////////////////////////////
Examples:
//////////////////////////////
AgeInDays &lt; 5  //Get files created in last 5 days
LastEditInDays &gt; 3 //Get files modified before 3 days
AgeInDays &gt; 10 AND LastEditInDays &lt; 3  //Get files created before 10 days and modified in last 3 days
Size &lt; 1024  //Get files where File size is less than 1024 bytes
CreationDate BETWEEN #2015-01-01# AND #2015-01-01#  
Name IN ('File1.txt', 'Download.msi')
FullPath LIKE 'mybucket\somefolder\month_*')
Extension IN ('.txt','.csv')
LastModifiedDate &gt; #2013-01-01T16:00:00#
IsReadOnly = True
/////////////////////////////////////////
//Supported Columns for expression:
/////////////////////////////////////////
Name, FullPath, Extension, FolderPath, AgeInDays, LastEditInDays, Size, CreationDate, CreationDateUtc, LastModifiedDate, LastModifiedDateUtc, IsReadOnly</pre><p>
&nbsp;</p>
<h3><span id="Delete_Amazon_S3_files_older_than_X_days">Select Amazon S3 files older than X days</span></h3>
<p>If you like to select / delete files older than certain days then use below technique.<br />
<pre class="crayon-plain-tag">AgeInDays &gt; 10</pre>
<ol>
<li>First Specify primary search criteria on Source tab</li>
<li>Go to Advanced Filter Tab and specify Following Pattern in <strong>Where</strong> Textbox (For example delete Files older than 10 days )
<div id="crayon-5c66c6b62f52c668162370" class="crayon-syntax crayon-theme-vs2012 crayon-font-courier-new crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover">
<div class="crayon-plain-wrap"></div>
</div>
</li>
</ol>
<h2></h2>
<p>The post <a href="https://zappysys.com/blog/advanced-path-filtering-for-amazon-azure-storage-ssis-task/">Filter by file size, name, date for Amazon / Azure Storage SSIS Task</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SSIS &#8211; Copy Amazon S3 files from AWS to Azure</title>
		<link>https://zappysys.com/blog/ssis-copy-move-amazon-s3-files-from-aws-to-azure/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Wed, 19 Apr 2017 21:40:45 +0000</pubDate>
				<category><![CDATA[SSIS Amazon Storage Task]]></category>
		<category><![CDATA[SSIS Azure Blob Storage Task]]></category>
		<category><![CDATA[Amazon S3]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[azure]]></category>
		<category><![CDATA[azure blob storage]]></category>
		<category><![CDATA[GCP]]></category>
		<category><![CDATA[Google Cloud]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[ssis amazon storage task]]></category>
		<category><![CDATA[ssis azure storage task]]></category>
		<category><![CDATA[SSIS PowerPack]]></category>
		<guid isPermaLink="false">http://zappysys.com/blog/?p=1097</guid>

					<description><![CDATA[<p>Introduction Azure and AWS both are most popular Cloud Platforms. In this blog post we will learn how to copy or move Amazon S3 files to Azure Blob Storage without any coding or scripting  (AWS to Azure File Copy / Migration Scenario). To achieve this objective we will use following Drag and Drop SSIS  Tasks (i.e. [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/ssis-copy-move-amazon-s3-files-from-aws-to-azure/">SSIS &#8211; Copy Amazon S3 files from AWS to Azure</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Azure and AWS both are most popular Cloud Platforms. In this blog post we will learn <em>how to copy or move Amazon S3 files to Azure Blob Storage</em> without any coding or scripting  (<strong>AWS to Azure File Copy / Migration Scenario</strong>). To achieve this objective we will use following Drag and Drop SSIS  Tasks (i.e. Microsoft SQL Server Integration Services &#8211; <a href="https://docs.microsoft.com/en-us/sql/integration-services/sql-server-integration-services" target="_blank">ETL Platform for SQL Server</a>). Following components are highly optimized for parallel copy/multi threading with secure connection (client side/serverside encryption).</p>
<table>
<tbody>
<tr>
<td width="36"><img decoding="async" src="//zappysys.com/onlinehelp/ssis-powerpack/scr/images/azure-storage-task/ssis-azure-cloud-storage-task.png" alt="Custom SSIS Tasks - Azure Blob Storage Task" width="32" /></td>
<td><a title="SSIS Azure Blob Storage Task (Manage Azure Blob Storage)" href="//zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank">SSIS Azure Blob Storage Task</a></td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<td width="36"><img decoding="async" src="//zappysys.com/images/ssis-powerpack/SSIS-Amazon-S3-Cloud-Task.png" alt="Custom SSIS Components - Amazon S3 Task (AWS S3)" width="32" /></td>
<td><a title="SSIS Amazon Storage Task (Manage AWS S3)" href="//zappysys.com/products/ssis-powerpack/ssis-amazon-s3-task/" target="_blank">SSIS Amazon Storage Task (AWS S3)</a></td>
</tr>
</tbody>
</table>
<h2>Concept : Fast Server Side Copy in Azure (Copy files into Azure Blob Storage)</h2>
<p>Azure provides unique feature called server side file copy. Using this feature you can load or copy files into Azure Blob Storage without landing data to your local machine. As of now (March 2017) this type of feature is still missing in other Cloud Platform such as <strong>Amazon AWS</strong> and <strong>Google Cloud Platform &#8211; GCP</strong>.</p>
<p>Using server side copy feature in Azure&#8230; you can achieve following scenarios in SSIS without coding</p>
<ul>
<li>Move / Copy files from Amazon S3 to Azure Blob Storage</li>
<li>Move / Copy files from Google Cloud Platform (GCP) to Azure Blob Storage</li>
<li>Copy files from any public URL to Azure Blob Storage (Assuming URL doesn&#8217;t require credentials or its intranet URL)</li>
</ul>
<p>In first two scenarios you need to have Source File URL using Authentication information inside URL (This is called Pre-Signed URL e.g. http://mycloud.com/myfile.zip?SIGNATURE-GOES-HERE ). All major Cloud Providers Support Pre-Signed URL so you can securely share files  with other without sharing your actual Credentials. You can configure Pre-Signed URL to expires in certain time frame (Check your Cloud API documentation). If your file doesn&#8217;t need credentials to access then you don&#8217;t have to worry about Pre-Signed URL. Your source can be file URL  (E.g. https://mysite.com/downloads/fil1.zip)</p>
<p><strong>Pre-Signed URL for Google Cloud (GCP)</strong><br />
Here is more information <a title="Create Presigned URL for Google Cloud Platform file (GCP file)" href="https://cloud.google.com/storage/docs/access-control/create-signed-urls-gsutil" target="_blank">how to get Pre-Signed URL for Google Cloud Platform (GCP) </a>&#8211; Use gsutil command line<br />
<strong>Pre-Signed URL for Amazon AWS (S3 file)</strong><br />
To create pre-signed URL for AWS S3 files you can use <a href="//zappysys.com/products/ssis-powerpack/ssis-amazon-s3-task/" target="_blank">SSIS Amazon Storage Task</a> and use Get Pre-Signed URL Action (Described in the below section). This action supports creating pre-signed URLs for multiple files using wildcard (e.g /mybkt/*.zip)  or you can get single pre-signed URL. If you use pattern search then you will get DataTable back &#8230; which can be loop through using ForEach Loop task (Loop ADO Recordset option) . If you do not use wild card then only one URL returned in string format.</p>
<h2>Prerequisites</h2>
<p>Before we look at next section make sure following prerequisites are met</p>
<ol>
<li>You have obtained Amazon S3 Access Key and Secret Key to access desired files</li>
<li>You have obtained Azure Storage Account Name and Account Key to access desired Blob Container. If you don&#8217;t have access to Azure then you can download Azure Storage Emulator for testing Purpose. <a href="https://zappysys.com/forums/topic/azure-blob-storage-how-to-download-and-test-azure-storage-emulator/" target="_blank">Check this</a>.</li>
<li>You have basic knowledge of SSIS. If you dont then search for SSIS tutorial and there are many blogs / tutorials to get started 🙂</li>
</ol>
<h2>Step-By-Step &#8211; Create SSIS Package &#8211; Copy Amazon S3 Files to Azure Blob Storage</h2>
<p>Now lets look at how to copy Amazon S3 files to Azure in few clicks. This approach doesn&#8217;t bring any data to your local system so its purely server to server copy and that is why its very fast and secure.</p>
<ol>
<li>First Download and <a href="//zappysys.com/products/ssis-powerpack/" target="_blank">Install SSIS PowerPack</a></li>
<li>Once you install SSIS PowerPack. Create a new Sample SSIS Project and open Package</li>
<li>From SSIS Toolbox Drag <a href="//zappysys.com/products/ssis-powerpack/ssis-amazon-s3-task/" target="_blank">ZS Amazon Storage Task</a> and drop on Control Flow surface. Rename it to <strong>Get S3 File Urls</strong></li>
<li>Double click S3 task to edit. From Action dropdown select (Get Amazon S3 Files Pre-Signed Url Option)</li>
<li>Click New next to the Connection Dropdown to create Amazon Storage Connection. Enter your credentials and bucket region and Click Test. If you are <a href="https://zappysys.com/blog/check-amazon-s3-bucket-location-region/" target="_blank">not sure about your bucket region then check this article</a>.
<div id="attachment_2196" style="width: 647px" class="wp-caption alignnone"><a href="//zappysys.com/wp-content/uploads/2017/04/ssis-aws-to-azure-copy-create-pre-signed-url-multiple-files.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2196" class="size-full wp-image-2196" src="//zappysys.com/wp-content/uploads/2017/04/ssis-aws-to-azure-copy-create-pre-signed-url-multiple-files.png" alt="SSIS Amazon Storage Task - Create Pre-Signed URLs for multiple files stored in S3" width="637" height="824" /></a><p id="caption-attachment-2196" class="wp-caption-text">SSIS Amazon Storage Task &#8211; Create Pre-Signed URLs for multiple files stored in S3</p></div></li>
<li>Now click on Advanced Tab and check Use region specific endpoint option
<div id="attachment_2197" style="width: 414px" class="wp-caption alignnone"><a href="//zappysys.com/wp-content/uploads/2017/04/ssis-amazon-s3-connection-region-specific-endpoint.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2197" class="size-full wp-image-2197" src="//zappysys.com/wp-content/uploads/2017/04/ssis-amazon-s3-connection-region-specific-endpoint.png" alt="SSIS Amazon S3 Connection - Region specific endpoint option" width="404" height="200" /></a><p id="caption-attachment-2197" class="wp-caption-text">SSIS Amazon S3 Connection &#8211; Region specific endpoint option</p></div></li>
<li>Once Test connection is green you can click OK to save connection.</li>
<li>Once you back to Amazon Storage Task UI&#8230; Click on browse next to S3 file path. Her you can select one file or enter pattern to create URLs for multiple files.</li>
<li>To save pre-signed URL(s) select Variable. If variable is not there then create new one&#8230; If you enter pattern in Source path then Variable must be Object datatype. For multiple URL it will return ADO Recordset (You can use with ForEach Loop Task). If you didn&#8217;t enter pattern in source path then variable can be string datatype.
<div id="attachment_2198" style="width: 845px" class="wp-caption alignnone"><a href="//zappysys.com/wp-content/uploads/2017/04/ssis-get-presigned-url-for-multiple-amazon-s3-files-for-loop.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2198" class="size-full wp-image-2198" src="//zappysys.com/wp-content/uploads/2017/04/ssis-get-presigned-url-for-multiple-amazon-s3-files-for-loop.png" alt="SSIS Amazon Storage Task - Save Pre-Signed URL to Variable (Save Multiple URL as Recordset )" width="835" height="681" /></a><p id="caption-attachment-2198" class="wp-caption-text">SSIS Amazon Storage Task &#8211; Save Pre-Signed URL to Variable (Save Multiple URL as Recordset )</p></div></li>
<li>Now drag and drop ForEach Loop Container on the surface and configure like below
<div id="attachment_2199" style="width: 660px" class="wp-caption alignnone"><a href="//zappysys.com/wp-content/uploads/2017/04/ssis-foreach-loop-amazon-s3-files-presigned-url.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2199" class="size-full wp-image-2199" src="//zappysys.com/wp-content/uploads/2017/04/ssis-foreach-loop-amazon-s3-files-presigned-url.png" alt="SSIS ForEach Loop Container Task - Loop through Amazon S3 file URL" width="650" height="550" /></a><p id="caption-attachment-2199" class="wp-caption-text">SSIS ForEach Loop Container Task &#8211; Loop through Amazon S3 file URL</p></div>
<div id="attachment_2200" style="width: 450px" class="wp-caption alignnone"><a href="//zappysys.com/wp-content/uploads/2017/04/ssis-foreach-loop-variable-mapping-each-iteration.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2200" class="size-full wp-image-2200" src="//zappysys.com/wp-content/uploads/2017/04/ssis-foreach-loop-variable-mapping-each-iteration.png" alt="SSIS ForEach Loop Task - Variable Mappings" width="440" height="365" /></a><p id="caption-attachment-2200" class="wp-caption-text">SSIS ForEach Loop Task &#8211; Variable Mappings</p></div></li>
<li>Once Foreach Loop is configured you can drag <a href="//zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank">ZS Azure Storage Task</a> inside ForEach Loop Container</li>
<li>Double click Azure storage task and select [<strong>Copy from external file</strong>] option from Action dropdown.</li>
<li>In the source Path/URL we will enter variable name which holds current URL for ForEach Loop iteration. Easy way is click blue variable icon and select &lt;&lt;Insert Variable&gt;&gt;. Your placeholder may look like below.<br />
<pre class="crayon-plain-tag">{{User::varCurrentS3Url}}</pre>
</li>
<li>For target path &#8230; Click New Connection to create and configure new <strong>Azure Storage Connection</strong> like below. Enter Azure storage credentials and click test. If you don&#8217;t have real Azure credentials then you can use <a href="https://zappysys.com/forums/topic/azure-blob-storage-how-to-download-and-test-azure-storage-emulator/" target="_blank">Azure Storage Emulator (Check this)</a>. Once connection is Configured click Test connection and click OK to save connection.
<div id="attachment_2201" style="width: 898px" class="wp-caption alignnone"><a href="//zappysys.com/wp-content/uploads/2017/04/ssis-configure-azure-storage-task-copy-aws-s3-file.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2201" class="size-full wp-image-2201" src="//zappysys.com/wp-content/uploads/2017/04/ssis-configure-azure-storage-task-copy-aws-s3-file.png" alt="Azure Storage Task - Configure Blob Storage connection- Serverside Copy S3 files - AWS to Azure" width="888" height="829" /></a><p id="caption-attachment-2201" class="wp-caption-text">Azure Storage Task &#8211; Configure Blob Storage connection- Serverside Copy S3 files &#8211; AWS to Azure</p></div></li>
<li>Once everything is configure you can save package and execute. This will copy S3 files to Azure Blob storage.</li>
<li>Here is execution log<br />
<pre class="crayon-plain-tag">SSIS package &quot;C:\SSIS\Amazon-To-Azure-Copy.dtsx&quot; starting.
Information: 0x0 at Get Signed URL for S3 Files, Get Signed URL for S3 Files: You are running TRIAL version. It will expire in 29 day(s)
Information: 0x0 at Get Signed URL for S3 Files, Get Signed URL for S3 Files: Reading [PRESIGNED-URL] property for zs-eu-west-2-london-bkt2/*.*
Information: 0x0 at Copy S3 File to Azure, Copy S3 File to Azure: Copy started: Source=https://zs-eu-west-2-london-bkt2.s3.eu-west-2.amazonaws.com/cloudfile1.csv, Target=test1/
Information: 0x0 at Copy S3 File to Azure, Copy S3 File to Azure: Copying https://zs-eu-west-2-london-bkt2.s3.eu-west-2.amazonaws.com/cloudfile1.csv ...
Information: 0x0 at Copy S3 File to Azure, Copy S3 File to Azure: Copy started: Source=https://zs-eu-west-2-london-bkt2.s3.eu-west-2.amazonaws.com/cloudfile3.txt, Target=test1/
Information: 0x0 at Copy S3 File to Azure, Copy S3 File to Azure: Copying https://zs-eu-west-2-london-bkt2.s3.eu-west-2.amazonaws.com/cloudfile3.txt ...
SSIS package &quot;C:\SSIS\Amazon-To-Azure-Copy.dtsx&quot; finished: Success.</pre>
<div id="attachment_1100" style="width: 712px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2017/04/ssis-package-copy-multiple-s3-files-amazon-aws-to-azure.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-1100" class="size-full wp-image-1100" src="//zappysys.com/blog/wp-content/uploads/2017/04/ssis-package-copy-multiple-s3-files-amazon-aws-to-azure.png" alt="SSIS Package Execution - Copy Multiple S3 Files from Amazon to Azure" width="702" height="380" srcset="https://zappysys.com/blog/wp-content/uploads/2017/04/ssis-package-copy-multiple-s3-files-amazon-aws-to-azure.png 702w, https://zappysys.com/blog/wp-content/uploads/2017/04/ssis-package-copy-multiple-s3-files-amazon-aws-to-azure-300x162.png 300w" sizes="(max-width: 702px) 100vw, 702px" /></a><p id="caption-attachment-1100" class="wp-caption-text">SSIS Package Execution &#8211; Copy Multiple S3 Files from<br />Amazon to Azure</p></div></li>
</ol>
<p>&nbsp;</p>
<h2>How to move Amazon S3 files to Azure</h2>
<p>In above example you saw how to copy files from Amazon S3 to Azure Blob Storage. But what if you want to Move&#8230; so once file is copied you want to delete from source. In that case its simple. Add one more Amazon S3 Task at the end so if all previous steps successful you can Issue delete files command using ZS Amazon Storage Task.</p>
<div id="attachment_2204" style="width: 602px" class="wp-caption alignnone"><a href="//zappysys.com/wp-content/uploads/2017/04/ssis-delete-amazon-s3-files.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2204" class="size-full wp-image-2204" src="//zappysys.com/wp-content/uploads/2017/04/ssis-delete-amazon-s3-files.png" alt="SSIS Delete Amazon S3 Files after Successful S3 to Azure Copy operation (This will mimic Move)" width="592" height="550" /></a><p id="caption-attachment-2204" class="wp-caption-text">SSIS Delete Amazon S3 Files after Successful S3 to Azure Copy operation (This will mimic Move)</p></div>
<h2>Download Sample SSIS Package</h2>
<p><a href="//zappysys.com/blog/wp-content/uploads/2017/04/SSIS-Amazon-S3-To-Azure-Copy-Move.zip">Click here to download sample SSIS file for SQL Server 2012, 2014, 2016</a></p>
<h2>Conclusion</h2>
<p>If you want to bring data from Amazon S3 to Azure in fastest way then technique described in this article can help you to cut down your data transfer time by several times. <a href="//zappysys.com/products/ssis-powerpack/">SSIS PowerPack</a> comes with 45+ components and tasks which can give you drag and drop interface for your Cloud connectivity projects. It also comes with many connectors to help with JSON, XML, REST API related integration. Try <a href="//zappysys.com/products/ssis-powerpack/">SSIS PowerPack</a> for FREE without any limitation and find out what else you can do with it.</p>
<p>The post <a href="https://zappysys.com/blog/ssis-copy-move-amazon-s3-files-from-aws-to-azure/">SSIS &#8211; Copy Amazon S3 files from AWS to Azure</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
