76

How can I add a computed column to a table that already exists? S.O. has Computed Column Help - TSQL but no information about adding them.

Community
  • 1
  • 1
Chris Pfohl
  • 18,220
  • 9
  • 68
  • 111

1 Answers1

120

The syntax I was looking for is:

alter table TABLE_NAME
add [column_name] as (**COLUMN-SQL**)
Chris Pfohl
  • 18,220
  • 9
  • 68
  • 111