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
Author
Message
Posted Friday, January 22, 2010 12:52 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

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

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.
Post #851784
Posted Friday, January 22, 2010 2:11 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 11:52 AM
Points: 41,530, Visits: 34,446
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 2008, 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