Forum Replies Created

Viewing 15 posts - 601 through 615 (of 7,503 total)

Johan

Learn to play, play to learn !

Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:

- How to post Performance Problems
- How to post data and code to get the best help

- How to prevent a sore throat after hours of presenting ppt

press F1 for solution, press shift+F1 for urgent solution 😀

Who am I ? Sometimes this is me but most of the time this is me

  • Reply To: Performance of same query slower for a different user

    Replace the Scalar Value function with a (in-line) Table Value Function and you will have a stable running potentially fast query !

    ...
    outer apply dbo.tvf_GenerateCostCode(CC.Code, SU.Code,...

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data and code to get the best help

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Who am I ? Sometimes this is me but most of the time this is me

  • Reply To: explicite alternative to FORMAT() concerning DATE

    Jeff Moden wrote:

    @Johan ... Do you have the code where you created and populated the #TallyDate table so that newbies can run your test?

    Also, your good code doesn't need the DATEADD/DATEDIFF...

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data and code to get the best help

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Who am I ? Sometimes this is me but most of the time this is me

  • Reply To: explicite alternative to FORMAT() concerning DATE

    The test is simple and straight forward

    set statistics time , io on
    go

    select FORMAT(datecol, 'yyyy-MM-dd') as Datetext
    from #TallyDate
    --order by DateCol

    /*
    (10000 rows affected)
    Table '#TallyDate__________________________________________________________________________________________________________000000000008'. Scan count 1, logical reads...

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data and code to get the best help

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Who am I ? Sometimes this is me but most of the time this is me

  • Reply To: Availability Groups

    just to add to Jeffrey's hints:

    Keep in mind your secondaries will also need the same size available !

    Don't forget your LDF files ! (these do not benefit from IFI !...

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data and code to get the best help

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Who am I ? Sometimes this is me but most of the time this is me

  • Viewing 15 posts - 601 through 615 (of 7,503 total)