|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 9:12 PM
Points: 5,103,
Visits: 20,208
|
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 3:12 AM
Points: 7,106,
Visits: 7,171
|
|
Nice question, and fine explanation, but that bit about "59.005" seems to have come from a different than the rest.
Tom Que conclure à la fin de tous mes longs propos? C'est que les préjugés sont la raison des sots. (Voltaire, 1756)
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Saturday, May 18, 2013 6:46 PM
Points: 1,074,
Visits: 1,076
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 8:24 AM
Points: 1,176,
Visits: 1,253
|
|
demonfox (3/17/2013)
L' Eomot Inversé (3/16/2013)
Nice question, and fine explanation, but that bit about "59.005" seems to have come from a different than the rest.  +1 May be, because, it's monday it looked like too much english and a long script to read . Then, I finally decided to go on with the question .. In the end, I realised it is a question about datetime millisecond precision  eventually it was a worthy read ,a simple query with calm mind ...  thanks for the question Edit: english
+2 Also good to see sql 2012 function "DATETIMEFROMPARTS" as well. Thanks Ron!
~ Lokesh Vij
Guidelines for quicker answers on T-SQL question Guidelines for answers on Performance questions
Link to my Blog Post --> www.SQLPathy.com
Follow me @Twitter

|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Sunday, May 19, 2013 11:16 PM
Points: 1,061,
Visits: 1,151
|
|
very good question to start of the week..
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 3:09 AM
Points: 1,085,
Visits: 1,163
|
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Today @ 4:14 AM
Points: 446,
Visits: 1,199
|
|
Awesome Qtod,thank you for posting.
(I am bursting with my doubts... but no idea where to begin...)
so to say... there will be no row/s in the datetime column where it ends with other than these .000, .003 or .007. Like .004 turns to .003 or .129 turns in to .127.... ? .002 changes to .003?
My main doubt is... in the BOL it says under property as "accuracy" and then the corresponding value starts with " rounded to increment..." ? what type of accuracy is this? 
edit; fixed the "property" spell
ww; Raghu -- There are only 10 types of people in the world, those who understand binary, and those who don't.
Note: (as of now) only.. 1 and 4 applies (i am on my way...)
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Saturday, May 18, 2013 6:46 PM
Points: 1,074,
Visits: 1,076
|
|
Raghavendra Mudugal (3/18/2013)
Awesome Qtod,thank you for posting. (I am bursting with my doubts... but no idea where to begin...) so to say... there will be no row/s in the datetime column where it ends with other than these .000, .003 or .007. Like .004 turns to .003 or .129 turns in to .127.... ? .002 changes to .003? My main doubt is... in the BOL it says under property as "accuracy" and then the corresponding value starts with " rounded to increment..." ? what type of accuracy is this?  edit; fixed the "property" spell
I found this out while migrating data on a datetime, that too from sybase datetime (i think it's 3 6 9 in millisecond for sybase datetime) , had to convert it to datetime2 for exactness..
yes, it is mentioned in bol ..the accuracy and the behaviour and cost fo this accuracy ...
so use as you wish .. and ignore as you wish ..
~ demonfox ___________________________________________________________________ Wondering what I would do next , when I am done with this one
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 8:24 AM
Points: 1,176,
Visits: 1,253
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: 2 days ago @ 2:04 PM
Points: 1,150,
Visits: 1,455
|
|
Thanks for the question Ron. I usually do the QOTD within ten minutes of rising in the morning. So, it helps when it's short. Or, as in this case, on a basic topic. Or, when I guess correctly!
Please don't go. The drones need you. They look up to you.
|
|
|
|