I would like to request the definition of a computed column from the database, but cannot find a command that seems to do what I want ...
For example, if a column is defined as:
CallDT AS (CONVERT([datetime],dateadd(second,[StartDate],'01/01/1970'),(0)))
in DDL, I would like to run a command in the database to get this AS statement so that I can compare it with its expected value. (I am developing an SQL parser that will compare an existing database with a DDL definition) ...
Is it possible?
sql database sql-server calculated-columns
Rimer
source share