﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / T-SQL (SS2K8)  / datepart for milliseconds not precise in SQL Server 2008? / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 00:20:28 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: datepart for milliseconds not precise in SQL Server 2008?</title><link>http://www.sqlservercentral.com/Forums/Topic1078032-392-1.aspx</link><description>Also the datetime2 and datetimeoffset data types as well in SQL Server 2008.</description><pubDate>Mon, 14 Mar 2011 19:56:56 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>RE: datepart for milliseconds not precise in SQL Server 2008?</title><link>http://www.sqlservercentral.com/Forums/Topic1078032-392-1.aspx</link><description>Use the TIME datatype instead of DATETIME for higher resolution on timings.  It's accurate to 100 nanoseconds.Edit: Left the window open in the background too long I see, I've just added some clarity to what Jeff already mentioned. :-)</description><pubDate>Mon, 14 Mar 2011 16:43:15 GMT</pubDate><dc:creator>Evil Kraig F</dc:creator></item><item><title>RE: datepart for milliseconds not precise in SQL Server 2008?</title><link>http://www.sqlservercentral.com/Forums/Topic1078032-392-1.aspx</link><description>IIRC, the resolution of some of the new datetime function in 2k8 has a [i]much [/i]better resolution.</description><pubDate>Mon, 14 Mar 2011 16:30:55 GMT</pubDate><dc:creator>Jeff Moden</dc:creator></item><item><title>RE: datepart for milliseconds not precise in SQL Server 2008?</title><link>http://www.sqlservercentral.com/Forums/Topic1078032-392-1.aspx</link><description>Nevermind.. I didn't realize that SQL Server only maintained a 3.33 precision on milliseconds..case closed.. thanksDonalith</description><pubDate>Mon, 14 Mar 2011 16:02:10 GMT</pubDate><dc:creator>Erin Ramsay</dc:creator></item><item><title>datepart for milliseconds not precise in SQL Server 2008?</title><link>http://www.sqlservercentral.com/Forums/Topic1078032-392-1.aspx</link><description>Why does this:DATEPART(MILLISECOND,cast('2011-03-14 17:43:52.134' as datetime))return 133?and DATEPART(MILLISECOND,cast('2011-03-14 17:43:52.135' as datetime))return 137?Is there an inconsistency in anything smaller than a second in SQL Server 2008?Donalith</description><pubDate>Mon, 14 Mar 2011 15:51:21 GMT</pubDate><dc:creator>Erin Ramsay</dc:creator></item></channel></rss>