<?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>Brant Burnett&#039;s Development Blog &#187; SSIS/DTS</title>
	<atom:link href="http://btburnett.com/category/sql-server/ssis/feed" rel="self" type="application/rss+xml" />
	<link>http://btburnett.com</link>
	<description></description>
	<lastBuildDate>Tue, 27 Apr 2010 12:48:38 +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>Combining Date and Time in DTS To Make a DT_DBTIMESTAMP datetime</title>
		<link>http://btburnett.com/2008/11/combining-date-and-time-in-dts-to-make-a-dt_dbtimestamp-datetime.html</link>
		<comments>http://btburnett.com/2008/11/combining-date-and-time-in-dts-to-make-a-dt_dbtimestamp-datetime.html#comments</comments>
		<pubDate>Tue, 25 Nov 2008 20:16:00 +0000</pubDate>
		<dc:creator>Brant Burnett</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SSIS/DTS]]></category>

		<guid isPermaLink="false">http://www.btburnett.com/?p=26</guid>
		<description><![CDATA[I was recently dealing with importing a DBISAM (Btrieve) database to SQL Server, which had separate date and time columns where I wanted to import a DateTime.  Using the ODBC driver and a DataReader data source, it was returning the date as the DT_DBTIMESTAMP type and the time as a DT_I8 long integer. I tried [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently dealing with importing a DBISAM (Btrieve) database to SQL Server, which had separate date and time columns where I wanted to import a DateTime.  Using the ODBC driver and a DataReader data source, it was returning the date as the DT_DBTIMESTAMP type and the time as a DT_I8 long integer.</p>
<p>I tried using the Derived Column transformation to combine them, but never could get it to work.  There simply aren&#8217;t many date functions supported by the Derived Column formulas.  Finally, I settled on using the following VBS script using the Script Component transformation:<!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode"><span class="kwrd">If</span> <span class="kwrd">Not</span> Row.StartDate_IsNull <span class="kwrd">Then</span>
    <span class="kwrd">If</span> Row.StartTime_IsNull <span class="kwrd">Then</span>
        Row.StartDateTime = Row.StartDate
    <span class="kwrd">Else</span>
        Row.StartDateTime = Row.StartDate.AddTicks(Row.StartTime)
    <span class="kwrd">End</span> <span class="kwrd">If</span>
<span class="kwrd">End</span> If</pre>
]]></content:encoded>
			<wfw:commentRss>http://btburnett.com/2008/11/combining-date-and-time-in-dts-to-make-a-dt_dbtimestamp-datetime.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating GUID Derived Column in DTS</title>
		<link>http://btburnett.com/2008/11/creating-guid-derived-column-in-dts.html</link>
		<comments>http://btburnett.com/2008/11/creating-guid-derived-column-in-dts.html#comments</comments>
		<pubDate>Tue, 25 Nov 2008 19:32:00 +0000</pubDate>
		<dc:creator>Brant Burnett</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SSIS/DTS]]></category>

		<guid isPermaLink="false">http://www.btburnett.com/?p=25</guid>
		<description><![CDATA[If you want to add a constant GUID to a table during a DTS transformation, it&#8217;s a little tricky.  Here&#8217;s the solution. Use the Derived Column transformation in order to add a new column.  For the formula, use the GUID surrounded by double quotes.  The trick is that you MUST include the curly braces, like [...]]]></description>
			<content:encoded><![CDATA[<div>If you want to add a constant GUID to a table during a DTS transformation, it&#8217;s a little tricky.  Here&#8217;s the solution.</p>
<p>Use the Derived Column transformation in order to add a new column.  For the formula, use the GUID surrounded by double quotes.  The trick is that you MUST include the curly braces, like so:</p>
<p>&#8220;{B83030CF-EC5A-45ca-BE2D-BCFCC2A85034}&#8221;</p>
<p>Then set the type of the column to unique identifier (DT_GUID).  That&#8217;s it.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://btburnett.com/2008/11/creating-guid-derived-column-in-dts.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
