I’m looking for something along the lines of
exec sp_helptext 'dbo.StoredProcName'
(which will return the SQL code that composes a stored procedure)
but for computed columns. Does such a function exist, outside of using SSMS to find it?
I’m looking for the text of the expression used to calculate the computed column.
Try this:
and of course – that catalog view also contains a lot more useful information in its other columns!