<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Saturday Fun Puzzle with SQL Server DATETIME2 and CAST</title>
	<atom:link href="http://blog.sqlauthority.com/2012/05/19/sql-server-saturday-fun-puzzle-with-sql-server-datetime2-and-cast/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2012/05/19/sql-server-saturday-fun-puzzle-with-sql-server-datetime2-and-cast/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Display Datetime in Specific Format &#8211; SQL in Sixty Seconds #033 &#8211; Video &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2012/05/19/sql-server-saturday-fun-puzzle-with-sql-server-datetime2-and-cast/#comment-377772</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Display Datetime in Specific Format &#8211; SQL in Sixty Seconds #033 &#8211; Video &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Wed, 21 Nov 2012 01:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18763#comment-377772</guid>
		<description><![CDATA[[...] Saturday Fun Puzzle with SQL Server DATETIME2 and CAST [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Saturday Fun Puzzle with SQL Server DATETIME2 and CAST [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://blog.sqlauthority.com/2012/05/19/sql-server-saturday-fun-puzzle-with-sql-server-datetime2-and-cast/#comment-352781</link>
		<dc:creator><![CDATA[Tim]]></dc:creator>
		<pubDate>Mon, 24 Sep 2012 21:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18763#comment-352781</guid>
		<description><![CDATA[It isn&#039;t a direct issue of varchar.  I think SQL performis an internal convert(varchar(100),getdate).  Since a style was not specified it is applying the default (100) which is Mon dd yyyy hh:mmAM.  This excludes seconds and milliseconds in the text string.  If we used convert(varchar(100),getdate(),113) our answers would be the same.  Unfortunately Cast is ANSI 92 standard while Convert is not.]]></description>
		<content:encoded><![CDATA[<p>It isn&#8217;t a direct issue of varchar.  I think SQL performis an internal convert(varchar(100),getdate).  Since a style was not specified it is applying the default (100) which is Mon dd yyyy hh:mmAM.  This excludes seconds and milliseconds in the text string.  If we used convert(varchar(100),getdate(),113) our answers would be the same.  Unfortunately Cast is ANSI 92 standard while Convert is not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2012/05/19/sql-server-saturday-fun-puzzle-with-sql-server-datetime2-and-cast/#comment-286202</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Sat, 19 May 2012 17:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18763#comment-286202</guid>
		<description><![CDATA[Great observation!]]></description>
		<content:encoded><![CDATA[<p>Great observation!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2012/05/19/sql-server-saturday-fun-puzzle-with-sql-server-datetime2-and-cast/#comment-286200</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Sat, 19 May 2012 17:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18763#comment-286200</guid>
		<description><![CDATA[Super!]]></description>
		<content:encoded><![CDATA[<p>Super!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2012/05/19/sql-server-saturday-fun-puzzle-with-sql-server-datetime2-and-cast/#comment-286199</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Sat, 19 May 2012 17:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18763#comment-286199</guid>
		<description><![CDATA[Excellent Point!]]></description>
		<content:encoded><![CDATA[<p>Excellent Point!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajan</title>
		<link>http://blog.sqlauthority.com/2012/05/19/sql-server-saturday-fun-puzzle-with-sql-server-datetime2-and-cast/#comment-286053</link>
		<dc:creator><![CDATA[Rajan]]></dc:creator>
		<pubDate>Sat, 19 May 2012 07:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18763#comment-286053</guid>
		<description><![CDATA[Varchar may not provide values in seconds, but datetime2 specifically provides values in seconds and milliseconds.

Even after converting Varchar into Datetime2, it will not provide the same value as of datetime2.]]></description>
		<content:encoded><![CDATA[<p>Varchar may not provide values in seconds, but datetime2 specifically provides values in seconds and milliseconds.</p>
<p>Even after converting Varchar into Datetime2, it will not provide the same value as of datetime2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Purna Magum</title>
		<link>http://blog.sqlauthority.com/2012/05/19/sql-server-saturday-fun-puzzle-with-sql-server-datetime2-and-cast/#comment-286034</link>
		<dc:creator><![CDATA[Purna Magum]]></dc:creator>
		<pubDate>Sat, 19 May 2012 06:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18763#comment-286034</guid>
		<description><![CDATA[As Q1 &amp; Q2&#039;s of field data types are same that&#039;s the reason result set is same.
In Q3 then DT1C field&#039;s data type is nvarchar and type casting to datetime2 type that&#039;s the reason it is converting like this]]></description>
		<content:encoded><![CDATA[<p>As Q1 &amp; Q2&#8242;s of field data types are same that&#8217;s the reason result set is same.<br />
In Q3 then DT1C field&#8217;s data type is nvarchar and type casting to datetime2 type that&#8217;s the reason it is converting like this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil Sharma</title>
		<link>http://blog.sqlauthority.com/2012/05/19/sql-server-saturday-fun-puzzle-with-sql-server-datetime2-and-cast/#comment-285941</link>
		<dc:creator><![CDATA[Anil Sharma]]></dc:creator>
		<pubDate>Sat, 19 May 2012 02:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18763#comment-285941</guid>
		<description><![CDATA[Q1 and Q2 have same answer becaz. they have same field type.
Due to Cast Function Varchar is converted to DateTime Thats why we are seeing the difference.]]></description>
		<content:encoded><![CDATA[<p>Q1 and Q2 have same answer becaz. they have same field type.<br />
Due to Cast Function Varchar is converted to DateTime Thats why we are seeing the difference.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
