<?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>A Developer&#039;s Blog &#187; TFS</title>
	<atom:link href="http://blog.hoegaerden.be/tag/tfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hoegaerden.be</link>
	<description>SQL Server, BI, .NET, IT and anything else I have been playing with.</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:15:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>SSIS: Adding Files To The Miscellaneous Folder</title>
		<link>http://blog.hoegaerden.be/2010/02/11/ssis-adding-files-to-the-miscellaneous-folder/</link>
		<comments>http://blog.hoegaerden.be/2010/02/11/ssis-adding-files-to-the-miscellaneous-folder/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 22:20:14 +0000</pubDate>
		<dc:creator>Valentino Vranken</dc:creator>
				<category><![CDATA[Integration Services]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[TFS]]></category>

		<guid isPermaLink="false">http://blog.hoegaerden.be/2010/02/11/ssis-adding-files-to-the-miscellaneous-folder/</guid>
		<description><![CDATA[Sometimes my posts are over 20 pages long when pasted into a Word document.&#160; That&#8217;s when I call them article, or tutorial.&#160; Other times I post real quickies about little things that have annoyed me in the past, because I had to spend too much time looking for a solution to a certain issue, or [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes my posts are over 20 pages long when pasted into a Word document.&#160; That&#8217;s when I call them article, or tutorial.&#160; Other times I post real quickies about little things that have annoyed me in the past, because I had to spend too much time looking for a solution to a certain issue, or just because they are not very obvious and I can image fellow developers doing a search on the internet on that specific subject.</p>
<p>This post is one of the latter.</p>
<p>In a <strong>SQL Server Integration Services project</strong>, have you ever wondered how on earth you can get files into that <strong>Miscellaneous folder</strong>?&#160; When you right-click on the folder in the Solution Explorer, nothing happens, no pop-up menu.</p>
<p>Well, the answer is simple, once you know it.</p>
<p>All you need to do is go one level up in the tree and right-click the Project node in the Solution Explorer.&#160; In the menu that appears, select Add &gt; Existing Item&#8230;.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="How to add a file to the SSIS Miscellaneous folder" border="0" alt="How to add a file to the SSIS Miscellaneous folder" src="http://blog.hoegaerden.be/wp-content/uploads/image176.png" width="352" height="397" /> </p>
<p>In the pop-up window, navigate to any file that you&#8217;d like to add to the project.&#160; Files of a different type than the usual SSIS files such as .dtsx and .ds are automatically added under the Miscellaneous folder.&#160; When adding files, they will be automatically copied to the SSIS project folder, no matter where they were stored originally.&#160; See, not that complicated&#8230; once you know it!</p>
<p>In the following screenshot I’ve added three different file types to the folder, just to prove that it’s working.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Miscellaneous folder with some files added to it" border="0" alt="Miscellaneous folder with some files added to it" src="http://blog.hoegaerden.be/wp-content/uploads/image177.png" width="279" height="241" /> </p>
<p>I like using this folder to store files that belong with that particular project.&#160; Examples of those are configuration files, XSLT files for complex XML conversions, and also the SQL scripts that create my databases.&#160; Each time when I make schema changes, I update the scripts.&#160; And as I&#8217;m using TFS integration, I can rest assured that I always have a backup of my files.&#160; (At least, assuming the TFS team is doing their job &#8211; this is usually beyond my responsibility <img src='http://blog.hoegaerden.be/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )</p>
<p>Speaking about <a title="Team Foundation Server Home" href="http://msdn.microsoft.com/en-us/teamsystem/dd408382.aspx" target="_blank">TFS</a>, watch out if you use Business Intelligence Development Studio 2008 to connect to Team Foundation Server 2005!&#160; There&#8217;s an interesting setting in the Options screen (through the Tools menu), located in the<strong> Source Control</strong> &gt; <strong>Visual Studio Team Foundation Server</strong> page.&#160; This setting is called <strong><em>Get latest version of file on check out</em></strong>.</p>
<p><a href="http://blog.hoegaerden.be/wp-content/uploads/image178.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Get latest version of item on check out" border="0" alt="Get latest version of item on check out" src="http://blog.hoegaerden.be/wp-content/uploads/image_thumb50.png" width="674" height="392" /></a> </p>
<p>However, there&#8217;s one caveat!&#160; On TFS2005 it doesn&#8217;t do anything!&#160; If you&#8217;re not aware of that, you may get an annoying surprise when you&#8217;re trying to check in your changes because you may have been working on an outdated version of your package!&#160; And as you probably already know: merging two versions of an SSIS package is, well, what shall I call it, a challenge?</p>
<p>Another setting that helps you to avoid the issue described above is located under<strong> Source Control</strong> &gt; <strong>Environment</strong> and is called <strong><em>Get everything when a solution or project is opened</em></strong>.&#160; Activate this setting and each time when you open your project, you&#8217;ll get a popup window which allows you to Get the latest version of the files.</p>
<p><a href="http://blog.hoegaerden.be/wp-content/uploads/image179.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Get evrything when a solution or project is opened" border="0" alt="Get evrything when a solution or project is opened" src="http://blog.hoegaerden.be/wp-content/uploads/image_thumb51.png" width="677" height="394" /></a> </p>
<p>That leaves one more possible conflict situation.&#160; If someone changes a package on the same day as you, the second person will need to explicitly do a Get Latest Version or he/she will be working on an outdated version.&#160; So, communicate with your team mates so that you know if someone has gotten an assignment that collides with yours.&#160; Of course, this last problem is just a theoretical possibility.&#160; In teams, work is usually divided so that developers do not need to work with more than one person on the same piece of code.&#160; The same logic applies to SSIS packages.</p>
</p>
</p>
<p>And remember, have fun!</p>
<p>Valentino.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.hoegaerden.be%2F2010%2F02%2F11%2Fssis-adding-files-to-the-miscellaneous-folder%2F&amp;title=SSIS%3A%20Adding%20Files%20To%20The%20Miscellaneous%20Folder" id="wpa2a_2"><img src="http://blog.hoegaerden.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hoegaerden.be/2010/02/11/ssis-adding-files-to-the-miscellaneous-folder/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

