• shane.vincent (5/12/2010)


    Just a thought, but I also got a more accurate GETDATE return value than the original article.

    (19430 ,3.52769) I think that a lot of this has to do with what else is running on the SQL box.

    So the date accuracy will be dependent on the load of the server to a degree.

    At least that is what it seems like.

    Only the first number (how many times the value changed) is affected by the load because the overall duration of the query is going to be affected. The higher the load on the box the higher the first number is going to be. But the second number (the "precision" number) does not really change that much with the load - just a fraction of a percent.

    Most people concentrated on the getdate() values but I think when you look at the sysdatetime() the difference between what the data type can store and the precision of what the function can return is much more dramatic. With getdate() we are talking of a difference of ~16ms (for many of us) vs ~3ms which is just about 5 times. When you look at the systdatetime() of about 1ms vs the 100ns we are talking 10000 times.

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]