<?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 Excel Export Task Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/category/ssis/tasks/ssis-excel-export-task/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/category/ssis/tasks/ssis-excel-export-task/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Thu, 02 Oct 2025 21:17:36 +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 Excel Export Task Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/category/ssis/tasks/ssis-excel-export-task/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SSIS Data Load – SQL Server to FTP/SFTP (Split Files, GZip)</title>
		<link>https://zappysys.com/blog/ssis-data-load-sql-server-ftp-sftp-split-files-gzip/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Sat, 13 Apr 2019 05:29:48 +0000</pubDate>
				<category><![CDATA[SSIS CSV Export Task]]></category>
		<category><![CDATA[SSIS Excel Export Task]]></category>
		<category><![CDATA[SSIS JSON Export Task]]></category>
		<category><![CDATA[SSIS SFTP / FTP Connection]]></category>
		<category><![CDATA[SSIS SFTP Task]]></category>
		<category><![CDATA[SSIS XML Export Task]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[ftps]]></category>
		<category><![CDATA[json.xml]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ssis]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=6761</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 FTP/SFTP. SSIS Data Load – SQL Server to FTP/SFTP (Split Files, GZip). For demo purpose we will use SQL Server as relational source but you can use same steps for any database engine [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/ssis-data-load-sql-server-ftp-sftp-split-files-gzip/">SSIS Data Load – SQL Server to FTP/SFTP (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><a href="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis-sftp-ftp-ftps-task.png" target="_blank" rel="noopener"><img decoding="async" class="wp-image-3058 size-full alignleft" src="https://zappysys.com/blog/wp-content/uploads/2018/03/ssis-sftp-ftp-ftps-task.png" alt="" width="100" height="100" /></a>In this blog post you will see how easy it is to load large amount of data from SQL Server to FTP/SFTP. SSIS Data Load – SQL Server to FTP/SFTP (Split Files, GZip).</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="https://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-sftp-task-ftp-ftps/" target="_blank" rel="noopener">ZS Secure FTP Task (SFTP, FTP, FTPS)</a> to achieve desired integration with FTP/SFTP/FTPS with drag and drop approach. You can also export data to JSON or XML or Excel file to FTP/SFTP/FTPS using same techniques (Use <a href="https://zappysys.com/products/ssis-powerpack/ssis-export-json-file-task/" target="_blank" rel="noopener">Export JSON Task</a>  or <a href="https://zappysys.com/products/ssis-powerpack/ssis-export-xml-file-task/" target="_blank" rel="noopener">Export XML Task</a> or <a href="https://zappysys.com/products/ssis-powerpack/ssis-export-excel-file-task/" target="_blank" rel="noopener">Export Excel 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</li>
<li>Split CSV files by row count</li>
<li>Upload data to FTP/SFTP/FTPS using highly parallel manner for maximum speed</li>
</ul>
<p>There are three different ways you can achieve data export to Secure FTP 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="https://zappysys.com/products/ssis-powerpack/ssis-export-csv-file-task/" target="_blank" rel="noopener">Export Task</a> and then upload files to Secure FTP using  <a href="https://zappysys.com/products/ssis-powerpack/ssis-sftp-task-ftp-ftps/" target="_blank" rel="noopener">ZS Secure FTP Task (SFTP, FTP, FTPS)</a> )</li>
<li><strong>Method-2 (Slower)</strong>: Use <a href="https://zappysys.com/products/ssis-powerpack/ssis-export-csv-file-task/" target="_blank" rel="noopener">Export Task</a> with Secure FTP 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-secure-ftp-csv-file-destination/" target="_blank" rel="noopener">Secure FTP CSV File Destination</a>  (for JSON / XML / EXCEL   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’t have JSON/ XML / EXCEL Destination for Secure FTP yet – we may add in future)</p>
<p><strong>Screenshot of SSIS Package</strong></p>
<div id="attachment_707" style="width: 835px" class="wp-caption aligncenter"><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="size-full wp-image-707" 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) and compress/upload files to Amazon S3 (AWS Cloud)" 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 FTP/SFTP/FTPS</p></div>
<h2><span id="Method-1_Upload_SQL_data_to_Azure_Blob_in_Two_steps">Method-1 : Upload SQL data to Secure FTP in Two steps</span></h2>
<p>In this section we will see first method (recommended) to upload SQL data to Secure FTP. 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 Secure FTP Storage using <a href="https://zappysys.com/products/ssis-powerpack/ssis-sftp-task-ftp-ftps/" target="_blank" rel="noopener">ZS Secure FTP Task (SFTP, FTP, FTPS)</a>.</p>
<h3><span id="Step-1_Configure_Source_Connection_in_Export_CSV_Task">Step-1: Configure Source Connection in Export CSV Task</span></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 aligncenter"><a href="https://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="https://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\cust.csv</li>
</ol>
<h3><span id="Step-2_Compress_CSV_Files_in_SSIS_GZIP_format_8211_gz">Step-2: Compress CSV Files in SSIS ( GZIP format – *.gz )</span></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 aligncenter"><a href="https://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="https://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><span id="Step-3_Split_CSV_files_by_row_count_or_data_size_in_SSIS">Step-3: Split CSV files by row count or data size in SSIS</span></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 aligncenter"><a href="https://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="https://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><span id="Step-4_Upload_CSV_files_to_Azure_Blob_8211_Using_multi_threaded_option">Step-4: Upload CSV files to Secure FTP – Using multi threaded option</span></h3>
<p>Now final thing is use <a href="https://zappysys.com/products/ssis-powerpack/ssis-sftp-task-ftp-ftps/" target="_blank" rel="noopener">ZS Secure FTP Task (SFTP, FTP, FTPS)</a> to upload files to Secure FTP.</p>
<p><strong>Steps:</strong></p>
<ol>
<li>Drag ZS Secure FTP Task (SFTP, FTP, FTPS) from SSIS toolbox</li>
<li>Double click ZS Secure FTP Task (SFTP, FTP, FTPS) to configure it</li>
<li>Specify Action = Upload Files To FTP Server</li>
<li>Specify Source file path (or pattern) e.g. c:\SSIS\temp\*.*</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 ZS Secure FTP Task (SFTP, FTP, FTPS) enter your bucket and folder path where you want to upload local files. (For example: <strong>/datafolder/sqldata/)</strong></li>
<li>Click ok and Run package to test full package</li>
</ol>
<h2><span id="Method-2_Upload_SQL_data_to_Azure_Blob_without_local_stage_One_step">Method-2 : Upload SQL data to Secure FTP without local stage (One step)</span></h2>
<p>Now let’s change previous approach little bit to send SQL server data directly to FTP/SFTP/FTPS without any Landing area on local disk.  <a href="https://zappysys.com/products/ssis-powerpack/ssis-export-csv-file-task/" target="_blank" rel="noopener">Export CSV Task</a> , <a href="https://zappysys.com/products/ssis-powerpack/ssis-export-json-file-task/" target="_blank" rel="noopener">Export JSON Task</a> , <a href="https://zappysys.com/products/ssis-powerpack/ssis-export-excel-file-task/" target="_blank" rel="noopener">Export Excel Task</a> and <a href="https://zappysys.com/products/ssis-powerpack/ssis-export-xml-file-task/" target="_blank" rel="noopener">Export XML Task</a> all of them supports Azure Blob / Amazon S3 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 Amazon storage.</p>
<div id="attachment_5252" style="width: 859px" class="wp-caption aligncenter"><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 Amazon S3, 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 Amazon S3, Azure Blob, Secure FTP (SFTP) in Stream Mode. Compress GZip, Overwrite, Split Options</p></div>
<h2><span id="Method-3_Using_Azure_Blob_destination_8211_Generate_Azure_Blob_file_from_any_source">Method-3 : Using Secure FTP CSV File Destination – Generate Secure FTP file from any source</span></h2>
<p>Now let’s look at third approach to save data from any SSIS Source to FTP/SFTP/FTPS 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 FTP/SFTP/FTPS then use this approach.  We will use <a href="https://zappysys.com/products/ssis-powerpack/ssis-secure-ftp-csv-file-destination/" target="_blank" rel="noopener">Secure FTP CSV File Destination</a> as below</p>
<ol>
<li>Drag SSIS Data flow task from toolbox<a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-7934" 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></li>
<li>Create necessary source connection (e.g. OLEDB connection)</li>
<li>Create Secure FTP Connection (Right click in Connection Managers panel in bottom and click New connection and select <strong>ZS-SFTP</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-secure-ftp-csv-file-destination/" target="_blank" rel="noopener">ZS Secure FTP CSV File Destination</a> from SSIS toolbox</li>
<li>Double click Secure FTP CSV File Destination and configure as below
<ol>
<li>On Connection Managers tab select Secure FTP 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 Secure FTP to see files got created.
<div id="attachment_5253" style="width: 729px" class="wp-caption aligncenter"><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 S3 Bucket Files (Split, Compress Gzip Options) - SSIS Amazon S3 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 Secure FTP Files (Split, Compress Gzip Options) &#8211; SSIS Secure Ftp CSV File Destination</p></div></li>
</ol>
<h2><span id="Conclusion">Conclusion</span></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 FTP/SFTP/FTPS in few clicks. <a href="https://zappysys.com/products/ssis-powerpack/">Try SSIS PowerPack</a> for free and find out yourself how easy it is to integrate SQL Server and Secure FTP using SSIS.</p>
<p>The post <a href="https://zappysys.com/blog/ssis-data-load-sql-server-ftp-sftp-split-files-gzip/">SSIS Data Load – SQL Server to FTP/SFTP (Split Files, GZip)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Create Excel Report in SSIS using a template (Export Formatted xlsx File)</title>
		<link>https://zappysys.com/blog/create-excel-report-in-ssis-using-template/</link>
		
		<dc:creator><![CDATA[ZappySys Team]]></dc:creator>
		<pubDate>Sat, 25 Aug 2018 03:23:32 +0000</pubDate>
				<category><![CDATA[SSIS Excel Export Task]]></category>
		<category><![CDATA[SSIS PowerPack]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[TEMPLATE]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=4673</guid>

					<description><![CDATA[<p>Introduction In our previous post we saw how to create excel dynamically in SSIS. Now let&#8217;s advance further and find out how to create Excel reports in SSIS using Powerful Template engine (introduced in PowerPack 2.7.4)  In this post you will learn how to use ZappySys Export Excel Task to export data from Multiple SQL Tables [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/create-excel-report-in-ssis-using-template/">Create Excel Report in SSIS using a template (Export Formatted xlsx File)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>In our previous post we saw how to <a href="https://zappysys.com/blog/ssis-export-to-excel-dynamically/" target="_blank" rel="noopener">create excel dynamically in SSIS</a>. Now let&#8217;s advance further and find out how to create Excel reports in SSIS using Powerful <strong>Template engine (introduced in PowerPack 2.7.4) </strong> In this post you will learn how to use <a href="https://zappysys.com/products/ssis-powerpack/ssis-export-excel-file-task/" target="_blank" rel="noopener">ZappySys Export Excel Task</a> to export data from Multiple SQL Tables to Single or Multiple Excel Sheets, we will use Formatting, Expressions and Filtering to export parent child datasets (Master-Detail) using Template approach which supports full customization as per your need.</p>
<p>We will be using following <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a> component to make things work in this tutorial:<br />
<div class="su-table su-table-alternate">
<table style="height: 59px" width="503">
<tbody>
<tr style="line-height: 0px">
<td width="50px"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5033" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-file-task.png" alt="ssis-export-excel-file-task" width="128" height="128" /><a href="https://zappysys.com/products/ssis-powerpack/ssis-export-excel-file-task/" target="_blank" rel="noopener"><br />
</a></td>
<td style="vertical-align: middle"><a href="https://zappysys.com/products/ssis-powerpack/ssis-export-excel-file-task/" target="_blank" rel="noopener">SSIS Export Excel File Task (Dynamically generate)</a></td>
</tr>
</tbody>
</table>
</div>
<p>You can check the following video to learn basic things about Export Excel Task. In future we will post video tutorial to show how Template engine works.</p>
[youtube https://www.youtube.com/watch?v=PXuOWo0xMoc&amp;w=560&amp;h=315]
<h2>Requirements</h2>
<ol>
<li>First of all, MS Excel installed.</li>
<li>Secondly, an Excel template that you can download <a href="https://zappysys.com/blog/wp-content/uploads/2018/08/template.xlsx" target="_blank" rel="noopener">here</a>.</li>
<li>In addition, you will need SQL Server installed.</li>
<li>Aso, the SQL Server <strong>Northwind sample database</strong> that you can download <a href="https://github.com/microsoft/sql-server-samples/blob/master/samples/databases/northwind-pubs/instnwnd.sql" target="_blank" rel="noopener">here.</a></li>
<li>Additionally, SSDT for Business Intelligence.</li>
<li>Finally, use the SSIS Excel package example that you can download <a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ExcelExport_TemplateReport.zip" target="_blank" rel="noopener">here</a>.</li>
</ol>
<h2>Concept about Excel Template Engine</h2>
<p>ZappySys Export Excel Template engine is compatible with <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html" target="_blank" rel="noopener">FlexCel engine described here</a>. So read it carefully to get most details about how template engine works and what elements supported in Template engine. Basically you have to use Template file which will be used to generate final excel report in SSIS. Advantage of Template engine approach compared to Simple export is you can control every aspect of your report. Also you can create nested reports use multiple datasets in a single sheet (Master-Detail JOINS) which is not possible in default export mode. The only down side of this approach is&#8230; learning curve. However once you understand concepts of Template Engine it wont take you too much time to master it.</p>
<p>In Template file you can define bands (e.g. Customer Info, Order Info&#8230;). Each band can grow in Vertical or Horizontal direction. Band must be created by <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html#named-ranges" target="_blank" rel="noopener">Named Range</a> in Excel. You must name your range in a very specific way. Based on how you suffix and prefix your named range it will decide how to grow your band (i.e. Expand Vertical or Horizontal).</p>
<p>Few things to remember with Template Engine.</p>
<ul>
<li>Each Template file must have at least one <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html#named-ranges" target="_blank" rel="noopener">Band</a> which can be used to attach Dataset.</li>
<li>Each Template file must have <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html#configuration-sheet" target="_blank" rel="noopener">Config Sheet</a> somewhere.</li>
<li>You can use many functions in your Template using <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-tag-reference.html" target="_blank" rel="noopener">Tag system</a></li>
<li>You can define Charts, Graphs any elements you like in Excel Template and link to Ranges you define.</li>
</ul>
<h2>Getting started</h2>
<p>In next few section we will see step by step instructions on how to use export SQL server data to Excel using Template File approach.</p>
<h3>Prepare Sample Tables (Source data)</h3>
<p>In this example, we will create an Excel report based in two SQL Server tables from the Northwind database mentioned in the requirements. We are going to use Northwind dataset. You can download <a href="https://zappysys.com/downloads/files/nw.zip">SQL Script file from here</a>. Just download / extract and run it in SSMS to create necessary Tables with Sample Data.</p>
<ol>
<li>First of all, we will see the data displayed in the Customer table:
<div id="attachment_4679" style="width: 526px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-northwind-customer-table.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4679" class="wp-image-4679 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-northwind-customer-table.png" alt="Northwind table customer" width="516" height="403" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-northwind-customer-table.png 516w, https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-northwind-customer-table-300x234.png 300w" sizes="(max-width: 516px) 100vw, 516px" /></a><p id="caption-attachment-4679" class="wp-caption-text">Northwind table in SQL Server</p></div></li>
<li>Secondly, we will check the data of the Orders table. Note that the CustomerID is included in this table, so we can create a master-detail report based on these 2 tables:
<div id="attachment_4680" style="width: 531px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-orders.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4680" class="wp-image-4680 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-orders.png" alt="SQL Server Order table" width="521" height="449" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-orders.png 521w, https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-orders-300x259.png 300w" sizes="(max-width: 521px) 100vw, 521px" /></a><p id="caption-attachment-4680" class="wp-caption-text">SQL Server Orders</p></div></li>
</ol>
<h3>Prepare Excel Template</h3>
<p>Now let&#8217;s create a  template file which will be used to share our exported file. To make demo simple we will use this already prepared <a href="https://zappysys.com/blog/wp-content/uploads/2018/08/template.xlsx" target="_blank" rel="noopener">template file</a>. Lets understand how template file was created.</p>
<p>We assume you have read concepts of template engine by reading <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html" target="_blank" rel="noopener">this link</a>.</p>
<p>Basically few things to check in Template file</p>
<ol>
<li>Defining correct Config Tab (Only needed if you are using special features such as reusable expression, or filters (i.e. subset of data).</li>
<li>Defining bands which is bound to dataset</li>
</ol>
<h4>Define Reusable Configuration Settings ( &lt;#Config&gt; tab )</h4>
<p>In our example we are creating 2 extra tabs (UK, US) using filter expression (subset of dataset) so we need to use Config setting for that purpose. Notice that Config tab must be names as <strong>&lt;#Config&gt;</strong> and Reusable sections for Data, Format and Expression must be defined as below Cell A10 , Cell H10, Cell L10.</p>
<div id="attachment_4941" style="width: 727px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-excel-report-template-config.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4941" class="size-full wp-image-4941" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-excel-report-template-config.png" alt="Define Config Settings for Excel Report" width="717" height="322" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-excel-report-template-config.png 717w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-excel-report-template-config-300x135.png 300w" sizes="(max-width: 717px) 100vw, 717px" /></a><p id="caption-attachment-4941" class="wp-caption-text">Define Config Settings for Excel Report</p></div>
<h4>Create Bands</h4>
<p>Now let&#8217;s look at how we define bands in template file. Read more about different types of <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html#named-ranges" target="_blank" rel="noopener">bands</a> in Excel Template Engine. Band are defined using Named ranges. In our example we use two bands in first <strong>Sheet1</strong>.</p>
<ul>
<li>For customer data __<strong>cust</strong>__  (start / end with <strong>double underscore</strong>)</li>
<li>For orders data __<strong>ord</strong>__<strong>X</strong> (Read more on <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html#x-ranges" target="_blank" rel="noopener">&#8220;X&#8221; ranges</a> )</li>
<li>For US tab  __<strong>cust_us</strong>__</li>
<li>For UK tab __<strong>cust_uk</strong>__</li>
</ul>
<div id="attachment_4942" style="width: 812px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-report-template-design.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4942" class="size-full wp-image-4942" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-report-template-design.png" alt="Designing Excel Report Template (Define Ranges for Master-Detail Report)" width="802" height="413" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-report-template-design.png 802w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-report-template-design-300x154.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-report-template-design-768x395.png 768w" sizes="(max-width: 802px) 100vw, 802px" /></a><p id="caption-attachment-4942" class="wp-caption-text">Designing Excel Report Template (Define Ranges for Master-Detail Report)</p></div>
<div id="attachment_4943" style="width: 527px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-using-filter-for-excel-reports.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4943" class="size-full wp-image-4943" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-using-filter-for-excel-reports.png" alt="Using Filter (Subset of data) in Excel Report" width="517" height="256" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-using-filter-for-excel-reports.png 517w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-using-filter-for-excel-reports-300x149.png 300w" sizes="(max-width: 517px) 100vw, 517px" /></a><p id="caption-attachment-4943" class="wp-caption-text">Using Filter (Subset of data) in Excel Report</p></div>
<h3>Create SSIS Package</h3>
<p>Now let&#8217;s use Our sample package to get started. You can create your own Package but we have already created one to make demo simple.</p>
<ol>
<li>In an SSIS project add the <a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ExcelExport_TemplateReport.zip" target="_blank" rel="noopener">Demo SSIS package</a> from the step 5 of the requirements:
<div id="attachment_4682" style="width: 363px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-add-existing-package.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4682" class="size-full wp-image-4682" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-add-existing-package.png" alt="Add package SSIS" width="353" height="284" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-add-existing-package.png 353w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-add-existing-package-300x241.png 300w" sizes="(max-width: 353px) 100vw, 353px" /></a><p id="caption-attachment-4682" class="wp-caption-text">SSIS add package</p></div></li>
<li>In addition, in the SSIS project, drag and drop the ZS Export Excel task and <strong>Create a connection</strong> to the Northwind Database by clicking New for Source Connection.</li>
<li>and enter the source tables/queries you like to use in your report. In our example, we will use two tables.<br />
Syntax for Source data is <pre class="crayon-plain-tag">alias1=Table1_Or_Query1 | alias2=Table2_Or_Query2 .... </pre>
In this example, we will use  <strong>cust= select * from dbo.Customers | ord=dbo.orders</strong>.<br />
You can also use just the table names for both e.g. <strong>cust=dbo.Customers | ord=dbo.orders<br />
</strong></p>
<div id="attachment_4683" style="width: 839px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-sql-server.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4683" class="size-full wp-image-4683" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-sql-server.png" alt="Export SSIS to Excel" width="829" height="633" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-sql-server.png 829w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-sql-server-300x229.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-sql-server-768x586.png 768w" sizes="(max-width: 829px) 100vw, 829px" /></a><p id="caption-attachment-4683" class="wp-caption-text">Source table/query for Excel Report</p></div>
<p>&nbsp;</li>
<li>Check the option to <strong>Use Template Engine</strong> To get the access to Excel Report Template Tab.
<div id="attachment_9742" style="width: 736px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/export-excel-use-template-engine.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-9742" class="wp-image-9742 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/08/export-excel-use-template-engine.png" alt="Use Template Engine" width="726" height="282" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/export-excel-use-template-engine.png 726w, https://zappysys.com/blog/wp-content/uploads/2018/08/export-excel-use-template-engine-300x117.png 300w" sizes="(max-width: 726px) 100vw, 726px" /></a><p id="caption-attachment-9742" class="wp-caption-text">Use Template Engine</p></div></li>
<li>Now go to Excel Report Template tab, enter the path of the <a href="https://zappysys.com/blog/wp-content/uploads/2018/08/template.xlsx" target="_blank" rel="noopener">template file</a> which we downloaded in step 2 of the requirements and write the relationship between the customer and order tables (<strong>cust.CustomerID=ord.CustomerID</strong>):
<div id="attachment_4684" style="width: 839px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-template.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4684" class="wp-image-4684 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-template.png" alt="Specify template file for Excel report, define relationship for master-detail report" width="829" height="633" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-template.png 829w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-template-300x229.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-template-768x586.png 768w" sizes="(max-width: 829px) 100vw, 829px" /></a><p id="caption-attachment-4684" class="wp-caption-text">Specify template file for Excel report, define relationship for master-detail report</p></div>
<p>&nbsp;</li>
<li>Finally, in the Target tab specify the path of the Excel Target and run the package:
<div id="attachment_4685" style="width: 839px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-target-from-sql-to-excel-template.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4685" class="size-full wp-image-4685" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-target-from-sql-to-excel-template.png" alt="Excel output in SSIS based on a template" width="829" height="633" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-target-from-sql-to-excel-template.png 829w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-target-from-sql-to-excel-template-300x229.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-target-from-sql-to-excel-template-768x586.png 768w" sizes="(max-width: 829px) 100vw, 829px" /></a><p id="caption-attachment-4685" class="wp-caption-text">SSIS target in Excel</p></div></li>
</ol>
<h3>Checking the results of the package to create an Excel Report in SSIS using a template</h3>
<ol>
<li>Once that you run the package, you can check the results. First of all, we will check the Sheet1. It will contain the orders grouped by customerID:
<div id="attachment_4687" style="width: 527px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-result-excel.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4687" class="size-full wp-image-4687" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-result-excel.png" alt="SSIS exported from SQL Server to Excel" width="517" height="558" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-result-excel.png 517w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-result-excel-278x300.png 278w" sizes="(max-width: 517px) 100vw, 517px" /></a><p id="caption-attachment-4687" class="wp-caption-text">Excel report exported in SSIS based on a template</p></div>
<p>&nbsp;</li>
<li>Secondly, in the US sheet in Excel, it will show the customers filtered by the country where the country is US:
<div id="attachment_4688" style="width: 599px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-filter-export-excel-template-us.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4688" class="size-full wp-image-4688" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-filter-export-excel-template-us.png" alt="Filter data in Excel in a template" width="589" height="509" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-filter-export-excel-template-us.png 589w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-filter-export-excel-template-us-300x259.png 300w" sizes="(max-width: 589px) 100vw, 589px" /></a><p id="caption-attachment-4688" class="wp-caption-text">filter data by country in Excel</p></div>
<p>&nbsp;</li>
<li>Also, in the UK sheet, it will show all the customers where the country is equal to UK:
<div id="attachment_4689" style="width: 267px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-filter-export-excel-template-uk.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4689" class="size-full wp-image-4689" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-filter-export-excel-template-uk.png" alt="Filter data by country" width="257" height="299" /></a><p id="caption-attachment-4689" class="wp-caption-text">Show data where the country is the United Kingdom</p></div></li>
</ol>
<h2>Add Dynamic Comments</h2>
<p>Sometimes you might want to add dynamic comments. Several cells may need comments, similar to tooltips, which come from another data column in the database.</p>
<p>To achieve this, add the comment to the cell in the template file and place a placeholder column under the specified column.<br />
<div id="attachment_11128" style="width: 553px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11128" src="https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file.jpg" alt="comment-excel-template-file" width="543" height="216" class="size-full wp-image-11128" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file.jpg 543w, https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file-300x119.jpg 300w" sizes="(max-width: 543px) 100vw, 543px" /></a><p id="caption-attachment-11128" class="wp-caption-text">Place the placeholder column under the specified column.</p></div>
<p>This will allow you to achieve the desired output. The Excel file will be generated with comments in this format.<br />
<div id="attachment_11129" style="width: 546px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file-output.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11129" src="https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file-output.jpg" alt="comment-excel-template-file-output" width="536" height="619" class="size-full wp-image-11129" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file-output.jpg 536w, https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file-output-260x300.jpg 260w" sizes="(max-width: 536px) 100vw, 536px" /></a><p id="caption-attachment-11129" class="wp-caption-text">Excel File with Comments</p></div>
<h2>Other Examples</h2>
<p>There are many other examples of template engine use case <a href="http://www.tmssoftware.biz/flexcel/doc/net/samples/csharp/netframework/reports/index.html" target="_blank" rel="noopener">found here</a>. Refer to related Github link and download xlsx files from Github. You can use those template file path to run demo in SSIS.</p>
<h3>Pivot Table Example</h3>
<p>For example to run Pivot Table demo using Template Engine download below files</p>
<p><a id="57cd45330214e7aa8d9f92e02e34b095-cfa9f8db99217eb8c54e53e67f5fdf7cf732870f" class="js-navigation-open" title="Pivot Tables.template.xlsx" href="https://github.com/tmssoftware/TMS-FlexCel.NET-demos/blob/master/csharp/VS2019/netframework/Modules/20.Reports/80.Pivot%20Tables/Pivot%20Tables.template.xlsx">Pivot Tables.template.xlsx</a></p>
<p><a id="37a8e97c9558d4ac016b4d6eedf9dcdc-8976fe124812d71bd23534cee520df3f3822a1ec" class="js-navigation-open" title="ReportHeader.xls" href="https://github.com/tmssoftware/TMS-FlexCel.NET-demos/blob/master/csharp/VS2019/netframework/Modules/20.Reports/80.Pivot%20Tables/ReportHeader.xls">ReportHeader.xls</a></p>
<p>Found under below path</p>
<p>https://github.com/tmssoftware/TMS-FlexCel.NET-demos/tree/master/csharp/VS2019/netframework/Modules/20.Reports/80.Pivot%20Tables</p>
<p>&nbsp;</p>
<h2>Conclusion</h2>
<p>To conclude, we learned how to create a report from data in SQL Server and export based on a template. The template not only included a nice format in Excel, but also filter and relationships between two tables. If you liked our products, enjoy them <a href="https://zappysys.com/products/ssis-powerpack/" rel="noopener">HERE</a>.</p>
<h2>References</h2>
<p>For more information about creating an Excel Report in SSIS using a template, refer to the following links:</p>
<ul>
<li><a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/getting-started.html" rel="noopener">Getting Started with FlexCel Studio for the .NET Framework</a></li>
<li><a href="https://zappysys.com/products/ssis-powerpack/ssis-export-excel-file-task/" rel="noopener">SSIS Export Excel File Task (Dynamically generate)</a></li>
<li><a href="https://www.youtube.com/watch?v=PXuOWo0xMoc" rel="noopener">SSIS Export Excel Task &#8211; Generate Excel Dynamically</a></li>
</ul>
<p>The post <a href="https://zappysys.com/blog/create-excel-report-in-ssis-using-template/">Create Excel Report in SSIS using a template (Export Formatted xlsx File)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SSIS export to excel dynamically (supports multiple tables)</title>
		<link>https://zappysys.com/blog/ssis-export-to-excel-dynamically/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Mon, 19 Oct 2015 02:18:42 +0000</pubDate>
				<category><![CDATA[SSIS Excel Export Task]]></category>
		<category><![CDATA[dataflow]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[SSIS PowerPack]]></category>
		<guid isPermaLink="false">http://zappysys.com/blog/?p=60</guid>

					<description><![CDATA[<p>Limitations of the SSIS Excel Source/Destination SSIS comes with out-of-the-box support for reading and writing to Excel. However, it&#8217;s very restrictive if you want to make things dynamic, as any metadata inside DataFlow cannot be changed at runtime. Here are a few problems with using the native Excel Source or Destination. Metadata cannot be changed [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/ssis-export-to-excel-dynamically/">SSIS export to excel dynamically (supports multiple tables)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Limitations of the SSIS Excel Source/Destination</h2>
<p>SSIS comes with out-of-the-box support for reading and writing to Excel. However, it&#8217;s very restrictive if you want to make things dynamic, as any metadata inside DataFlow cannot be changed at runtime. Here are a few problems with using the native Excel Source or Destination.</p>
<ul>
<li>Metadata cannot be changed at runtime.</li>
<li>Datatype guessing nightmare &#8211; only the first few rows are scanned, and the wrong datatype is selected.</li>
<li>Cannot export multiple tables to Excel.</li>
<li>Cannot split data into multiple tabs based on specific grouping criteria</li>
<li>Cannot specify the location where data has to be written</li>
</ul>
<h2>SSIS export to Excel dynamically using Excel Export Task</h2>
<p>If you want to generate Excel dynamically without any of the above hassle, then you can check the <a target="_blank" rel="noopener">SSIS Excel Export Task</a>. It comes with many advantages not found in the native <a href="https://docs.microsoft.com/en-us/sql/integration-services/data-flow/excel-destination" target="_blank" rel="noopener">Microsoft SSIS Excel Destination</a></p>
<p>Here is the list of a few features for the <a href="//zappysys.com/products/ssis-powerpack/ssis-export-excel-file-task/">SSIS Excel Export Task</a></p>
<ul>
<li>Export multiple tables/views to Excel files (e.g., Sales% or do SalesJan|SalesFeb).</li>
<li>Support for all major office versions (e.g, Office 2003, 2007, 2013+).</li>
<li>Export SQL query output to an Excel file.</li>
<li>A completely dynamic approach without limitations on DataFlow Strict Metadata.</li>
<li>Option to export data to a specific starting location in an Excel Sheet (e.g, A5 will start writing to the  5th row, 1st column).</li>
<li>Support for a password-protected Excel file.</li>
<li>Option to clear a range of cells before writing data to an existing Excel workbook (e.g., A1:D5000 will clear A to D columns from 1st to 5000 rows).</li>
<li>Automatically Split exported Excel data into multiple files by Size or Number of records.</li>
<li>Automatically Split exported Excel data into multiple files or tabs when Split By Column (e.g., SplitBy=Country will create a new file for each country). If the SplitOnTab option is specified, then data is written to a new Excel tab rather than a file for each new group.</li>
<li>Support for Compression and Append.</li>
<li>Fully managed means it works out of the box on both 32-bit and 64-bit systems without any changes (Note that Native SSIS Excel functionality is 32-bit only).</li>
<li>Support for SQL Server 2005, 2008, 2012, 2014 (32-bit and 64-bit).</li>
</ul>
<h3><span id="Step-By-Step">Step-By-Step</span></h3>
<div id="attachment_11544" style="width: 733px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-to-Excel-File-Task-Generate-Excel-files-for-selected-tables-views.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11544" class="size-full wp-image-11544" src="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-to-Excel-File-Task-Generate-Excel-files-for-selected-tables-views.png" alt="" width="723" height="635" srcset="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-to-Excel-File-Task-Generate-Excel-files-for-selected-tables-views.png 723w, https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-to-Excel-File-Task-Generate-Excel-files-for-selected-tables-views-300x263.png 300w" sizes="(max-width: 723px) 100vw, 723px" /></a><p id="caption-attachment-11544" class="wp-caption-text">SSIS Export to Excel File – Generate Excel files for selected tables/views</p></div>
<div class="mceTemp"></div>
<div id="attachment_11543" style="width: 733px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-to-Excel-File-Select-Target-Path-and-other-options.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11543" class="size-full wp-image-11543" src="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-to-Excel-File-Select-Target-Path-and-other-options.png" alt="" width="723" height="635" srcset="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-to-Excel-File-Select-Target-Path-and-other-options.png 723w, https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-to-Excel-File-Select-Target-Path-and-other-options-300x263.png 300w" sizes="(max-width: 723px) 100vw, 723px" /></a><p id="caption-attachment-11543" class="wp-caption-text">SSIS Export to Excel File &#8211; Generate Excel files for selected tables/views</p></div>
<div id="attachment_11545" style="width: 733px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-to-Excel-File-Split-Excel-Data-into-Multiple-files.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11545" class="size-full wp-image-11545" src="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-to-Excel-File-Split-Excel-Data-into-Multiple-files.png" alt="" width="723" height="635" srcset="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-to-Excel-File-Split-Excel-Data-into-Multiple-files.png 723w, https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-to-Excel-File-Split-Excel-Data-into-Multiple-files-300x263.png 300w" sizes="(max-width: 723px) 100vw, 723px" /></a><p id="caption-attachment-11545" class="wp-caption-text">SSIS Export to Excel File &#8211; Split Excel Data into Multiple Files</p></div>
<div class="mceTemp"></div>
<div id="attachment_11542" style="width: 733px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Split-Excel-Data-into-Multiple-files.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11542" class="size-full wp-image-11542" src="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Split-Excel-Data-into-Multiple-files.png" alt="" width="723" height="635" srcset="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Split-Excel-Data-into-Multiple-files.png 723w, https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Split-Excel-Data-into-Multiple-files-300x263.png 300w" sizes="(max-width: 723px) 100vw, 723px" /></a><p id="caption-attachment-11542" class="wp-caption-text">SSIS Export to Excel File &#8211; Split Excel Data into Multiple sheets</p></div>
<div class="mceTemp"></div>
<div class="mceTemp"></div>
<div id="attachment_11540" style="width: 733px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Excel-Date-Formatting-Encoding-Options.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11540" class="size-full wp-image-11540" src="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Excel-Date-Formatting-Encoding-Options.png" alt="" width="723" height="635" srcset="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Excel-Date-Formatting-Encoding-Options.png 723w, https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Excel-Date-Formatting-Encoding-Options-300x263.png 300w" sizes="(max-width: 723px) 100vw, 723px" /></a><p id="caption-attachment-11540" class="wp-caption-text">SSIS Export to Excel File &#8211; Date Formatting, Encoding Options</p></div>
<div class="mceTemp"></div>
<div id="attachment_11541" style="width: 1040px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Execution-Log.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11541" class="size-full wp-image-11541" src="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Execution-Log.png" alt="" width="1030" height="449" srcset="https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Execution-Log.png 1030w, https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Execution-Log-300x131.png 300w, https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Execution-Log-1024x446.png 1024w, https://zappysys.com/blog/wp-content/uploads/2015/10/SSIS-Export-Excel-File-Task-Execution-Log-768x335.png 768w" sizes="(max-width: 1030px) 100vw, 1030px" /></a><p id="caption-attachment-11541" class="wp-caption-text">SSIS Export to Excel File &#8211; Execution Log</p></div>
<h2>Conclusion</h2>
<p>In this post, we have seen how Excel generation can be a headache when you have dynamic metadata. You can use the <a href="//zappysys.com/products/ssis-powerpack/ssis-export-excel-file-task/">SSIS Excel Export Task</a> to solve many of these challenges.</p>
<p>The post <a href="https://zappysys.com/blog/ssis-export-to-excel-dynamically/">SSIS export to excel dynamically (supports multiple tables)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
