Home Forums SQL Server 2008 T-SQL (SS2K8) Decimal to DateTime2 conversion SQL SERVER 2008 help RE: Decimal to DateTime2 conversion SQL SERVER 2008 help

  • There's not enough information on your post to give you a real answer.

    We can't see your data.

    However, I would recommend you to examine this:

    select

    CONVERT(varchar(30),clx.prdt) as ADate

    from EXPM clx where clx.prdt<>0

    Or this

    select

    CONVERT(varchar(30),clx.prdt) as ADate

    from EXPM clx where clx.prdt<>0

    AND ISDATE(CONVERT(varchar(30),clx.prdt)) = 0

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2