Forum Replies Created

Viewing 15 posts - 8,161 through 8,175 (of 8,416 total)

  • RE: Comparison of Dates in SQL

    Kurt W. Zimmerman (4/28/2009)


    My approach is quite simple. I've established this as a standard development practice and seems to work just fine.

    This type of solution has already been posted,...

  • RE: Comparison of Dates in SQL

    Alexander Kuznetsov (4/28/2009)


    Here is very good article about datetime by Tibor:

    http://www.karaszi.com/SQLServer/info_datetime.asp

    Ooo! Alexander Kuznetzov!

    (and he's a 'grasshopper' :-D)

    Thanks for the link, Alex.

    Cheers,

    Paul

  • RE: Comparison of Dates in SQL

    Dallas Martin (4/28/2009)


    Hmm... You may suffer a huge performance hit if you use DATEDIFF().

    SQL SVR may have to perform a full table scan. Not exactly what one desires in...

  • RE: Performance issue with tally solution

    Ah. A post from Adam. Must be later than I realized. :w00t:

    This is probably feeping creaturism, but it would be great if it could handle more complex...

  • RE: Are the posted questions getting worse?

    Paul, a few of the articles out there may be weak, but sometimes the discussion posts turn out to be real seminars.

    Understood! I will look out for them.

    /P

  • RE: Are the posted questions getting worse?

    Grant Fritchey (4/28/2009)


    Either way, they learned something. The rest of us... in this case, not so much.

    Ha! My new waterproof monitor guard saves the day again!!

    Seriously, thanks for the...

  • RE: Comparison of Dates in SQL

    Ric Sierra (4/28/2009)


    Instead of (if you work with MSSQL2005 or 2008) use the DATE and TIME domains, if apply, and avoid calculations. Do you agree? 😉

    :ermm: DATE(n) and TIME(n)...

  • RE: Performance issue with tally solution

    mister.magoo (4/28/2009)


    EDIT: forget it - when I figure out how to post results I will try again!

    Ooo! You removed that just as I was quoting you!

    Actually the formatting was...

  • RE: Comparison of Dates in SQL

    Karteek (4/28/2009)


    The best way to go according to me is to create a variable and convert the dates to minutes or hours (depending on how accurate you need diff and...

  • RE: Are the posted questions getting worse?

    Best wishes to Barry for a speedy recovery.

    On a separate subject, can I ask: Are articles checked or reviewed before publication on SSC?

    I ask because I have just seen this...

  • RE: Comparison of Dates in SQL

    To anyone listening,

    Just for the record, I have to say that this is a poor article.

    The author would do well to seek a review of future articles from one of...

  • RE: Comparison of Dates in SQL

    dawidmocke (4/28/2009)


    I have been doing something like this:

    " WHERE DATEFIELD BETWEEN " & @DATE1 & " 00:00:00" & " AND " & @DATE2 & " 23:59:59.997"

    I know this works (please...

  • RE: Comparison of Dates in SQL

    Tao Klerks (4/28/2009)


    You've just added another dimension of complexity to SQL Performance tuning for me, now I have to go away and think about this. 🙂

    The good news is that...

  • RE: Performance issue with tally solution

    Hey Flo,

    Great stuff - very handy having that all in one post.

    You know, Adam's CLR function may not always offer a performance advantage; however it's memory efficiency and potential...

  • RE: SQL server 2005 AWE

    If you have 3.5GB or more in your server (or you would like it) you need a very good reason not to move to a 64-bit platform.

    Paul

Viewing 15 posts - 8,161 through 8,175 (of 8,416 total)