Click here to monitor SSC
SQLServerCentral is supported by Redgate
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: Saturday, December 3, 2016 5:18 AM
Points: 45,619, Visits: 44,147
Duplicate post. No replies to this thread please. Direct replies to:

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

Post #851830
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse