Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Sql server computed field Expand / Collapse
Posted Friday, January 22, 2010 12:52 AM


Group: General Forum Members
Last Login: Monday, March 26, 2012 5:05 AM
Points: 16, Visits: 136

Create table #Test
emp_id int
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.

Post #851784
Posted Friday, January 22, 2010 2:11 AM



Group: General Forum Members
Last Login: Today @ 9:33 AM
Points: 43,437, Visits: 40,569
Duplicate post. No replies to this thread please. Direct replies to:

Gail Shaw
Microsoft Certified Master: SQL Server, MVP
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

Post #851830
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse