• You need to convert your date values to varchar using CONVERT() function.

    You could use CONVERT(VARCHAR(19),Job.[MS Due Date],120) to get a date format which can be sorted.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]