Where is the SQL Server 2012 formula stored? -


i doing report, , 1 of tables called tblproduct has calculation triggered in sql server calculates cost on column. having trouble locating formula. there way determine or formula being pulled ?

by sounds of looking calculated column. if looking logic within calculated column can doing folowing:

  1. right click on table
  2. go script table as
  3. click on create to.

within definition should see calculated column definition

so in below example:

use [kamtest] go  /****** object:  table [dbo].[temp]    script date: 2/8/2016 2:24:40 pm ******/ set ansi_nulls on go  set quoted_identifier on go  create table [dbo].[temp](     [col1] [int] null,     [col2] [int] null,     [col3]  ([col1]*[col2])  --<-- calculated column ) on [primary]  go 

below calculated column definition

[col3]  ([col1]*[col2]) 

Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -