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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -