Sql server computed field

  • Create table #Test

    (

    emp_id int

    emp_Birth_Date

    emp_Age int AS datediff(d,emp_Birth_Date, getdate())

    )

    ....this computed field cannot work....i need the field to automatically calculate the differece and retains number as results.....any help.

    thanks.

  • Duplicate post. No replies to this thread please. Direct replies to:http://www.sqlservercentral.com/Forums/Topic851782-391-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply