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:
- right click on table
- go script table as
- 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
Post a Comment