<?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 – Precision of SMALLDATETIME – A 1 Minute Precision</title>
	<atom:link href="http://blog.sqlauthority.com/2010/06/01/sql-server-precision-of-smalldatetime-a-1-minute-precision/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2010/06/01/sql-server-precision-of-smalldatetime-a-1-minute-precision/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 23 May 2013 14:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Akram</title>
		<link>http://blog.sqlauthority.com/2010/06/01/sql-server-precision-of-smalldatetime-a-1-minute-precision/#comment-303107</link>
		<dc:creator><![CDATA[Akram]]></dc:creator>
		<pubDate>Tue, 19 Jun 2012 08:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=9117#comment-303107</guid>
		<description><![CDATA[Very Nice Article
I tested  this query and i analyse that precision of smalldatetime is forwarded 1minute after 30second of actual time,Here is the script run together...

declare @test datetime2
set @test=GETDATE()
print @test

declare @test1 smalldatetime
set @test1=GETDATE()
print @test1

declare @test2 datetime
set @test2=GETDATE()
print @test2]]></description>
		<content:encoded><![CDATA[<p>Very Nice Article<br />
I tested  this query and i analyse that precision of smalldatetime is forwarded 1minute after 30second of actual time,Here is the script run together&#8230;</p>
<p>declare @test datetime2<br />
set @test=GETDATE()<br />
print @test</p>
<p>declare @test1 smalldatetime<br />
set @test1=GETDATE()<br />
print @test1</p>
<p>declare @test2 datetime<br />
set @test2=GETDATE()<br />
print @test2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2010/06/01/sql-server-precision-of-smalldatetime-a-1-minute-precision/#comment-302675</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 18 Jun 2012 06:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=9117#comment-302675</guid>
		<description><![CDATA[Here is an example

declare @d datetime
select @d=&#039;20010101 12:19:44&#039;
select dateadd(minute,datediff(minute,0,@d),0)]]></description>
		<content:encoded><![CDATA[<p>Here is an example</p>
<p>declare @d datetime<br />
select @d=&#8217;20010101 12:19:44&#8242;<br />
select dateadd(minute,datediff(minute,0,@d),0)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jone</title>
		<link>http://blog.sqlauthority.com/2010/06/01/sql-server-precision-of-smalldatetime-a-1-minute-precision/#comment-302281</link>
		<dc:creator><![CDATA[Jone]]></dc:creator>
		<pubDate>Sun, 17 Jun 2012 06:14:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=9117#comment-302281</guid>
		<description><![CDATA[Hello
how can i cut seconds from datetime, without rounding the minute?
i want the minutes to stay, but cut the seconds from date]]></description>
		<content:encoded><![CDATA[<p>Hello<br />
how can i cut seconds from datetime, without rounding the minute?<br />
i want the minutes to stay, but cut the seconds from date</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; SmallDateTime and Precision &#8211; A Continuous Confusion &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2010/06/01/sql-server-precision-of-smalldatetime-a-1-minute-precision/#comment-286983</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; SmallDateTime and Precision &#8211; A Continuous Confusion &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Tue, 22 May 2012 01:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=9117#comment-286983</guid>
		<description><![CDATA[[...] Now if you do not want to continue reading blog post head over my previous blog post over here: SQL SERVER – Precision of SMALLDATETIME. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Now if you do not want to continue reading blog post head over my previous blog post over here: SQL SERVER – Precision of SMALLDATETIME. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLAuthority News – A Monthly Round Up of SQLAuthority Blog Posts Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2010/06/01/sql-server-precision-of-smalldatetime-a-1-minute-precision/#comment-78211</link>
		<dc:creator><![CDATA[SQLAuthority News – A Monthly Round Up of SQLAuthority Blog Posts Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Wed, 30 Jun 2010 01:31:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=9117#comment-78211</guid>
		<description><![CDATA[[...] month started very interesting subject of SQL SERVER – Precision of SMALLDATETIME – A 1 Minute Precision which lead to few datetime related blog posts. I find them very interesting and hopefully you will [...]]]></description>
		<content:encoded><![CDATA[<p>[...] month started very interesting subject of SQL SERVER – Precision of SMALLDATETIME – A 1 Minute Precision which lead to few datetime related blog posts. I find them very interesting and hopefully you will [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Russell</title>
		<link>http://blog.sqlauthority.com/2010/06/01/sql-server-precision-of-smalldatetime-a-1-minute-precision/#comment-75072</link>
		<dc:creator><![CDATA[Eric Russell]]></dc:creator>
		<pubDate>Mon, 07 Jun 2010 14:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=9117#comment-75072</guid>
		<description><![CDATA[I&#039;ve always defaulted to using the 4 byte smalldatetime instead of the 8 byte datetime, unless there is a business requirement or technical reason to store sec and ms. However, one pitfall to using smalldatetime is if one includes it as part of a unique key, or attempts to sort using the column, and doesn&#039;t consider that multiple records inserted within approx minute will result in  duplicate date/time values.
For example in a point of sale system, a key based on cash register ID and transaction smalldatetime may pass through QA and work in production without collision for weeks or months under normal circumstances, but then fail if a transaction is cancelled and a new transaction is immediately started. Also, I&#039;ve seen circumstances where it was expected that transactions, perhaps line items on an invoice, would be sorted based on the order they were inserted, but the insert_date column was insufficient due to it not having sec or ms resolution.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve always defaulted to using the 4 byte smalldatetime instead of the 8 byte datetime, unless there is a business requirement or technical reason to store sec and ms. However, one pitfall to using smalldatetime is if one includes it as part of a unique key, or attempts to sort using the column, and doesn&#8217;t consider that multiple records inserted within approx minute will result in  duplicate date/time values.<br />
For example in a point of sale system, a key based on cash register ID and transaction smalldatetime may pass through QA and work in production without collision for weeks or months under normal circumstances, but then fail if a transaction is cancelled and a new transaction is immediately started. Also, I&#8217;ve seen circumstances where it was expected that transactions, perhaps line items on an invoice, would be sorted based on the order they were inserted, but the insert_date column was insufficient due to it not having sec or ms resolution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nutan</title>
		<link>http://blog.sqlauthority.com/2010/06/01/sql-server-precision-of-smalldatetime-a-1-minute-precision/#comment-74097</link>
		<dc:creator><![CDATA[Nutan]]></dc:creator>
		<pubDate>Tue, 01 Jun 2010 10:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=9117#comment-74097</guid>
		<description><![CDATA[Sir,
    I&#039;ve used this datatype so many times but i&#039;ve not noticed the issue yet. Thanks for posting this issue.....]]></description>
		<content:encoded><![CDATA[<p>Sir,<br />
    I&#8217;ve used this datatype so many times but i&#8217;ve not noticed the issue yet. Thanks for posting this issue&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adnan Badar</title>
		<link>http://blog.sqlauthority.com/2010/06/01/sql-server-precision-of-smalldatetime-a-1-minute-precision/#comment-74081</link>
		<dc:creator><![CDATA[Adnan Badar]]></dc:creator>
		<pubDate>Tue, 01 Jun 2010 08:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=9117#comment-74081</guid>
		<description><![CDATA[Nice article,

Just want to be more accurate about rounding,
example

DECLARE @varSDate AS SMALLDATETIME
SET @varSDate = &#039;1900-01-01 12:12:29.998&#039;
SELECT @varSDate C_SDT
-- Will give you &#039;1900-01-01 12:12:00&#039;
SET @varSDate = &#039;1900-01-01 12:12:29.999&#039;
SELECT @varSDate C_SDT
-- Will give you &#039;1900-01-01 12:13:00&#039;]]></description>
		<content:encoded><![CDATA[<p>Nice article,</p>
<p>Just want to be more accurate about rounding,<br />
example</p>
<p>DECLARE @varSDate AS SMALLDATETIME<br />
SET @varSDate = &#8217;1900-01-01 12:12:29.998&#8242;<br />
SELECT @varSDate C_SDT<br />
&#8211; Will give you &#8217;1900-01-01 12:12:00&#8242;<br />
SET @varSDate = &#8217;1900-01-01 12:12:29.999&#8242;<br />
SELECT @varSDate C_SDT<br />
&#8211; Will give you &#8217;1900-01-01 12:13:00&#8242;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
