Changing column name

How we can change the name of the column for a existing table?

Questions by ysnkumar   answers by ysnkumar

Showing Answers 1 - 6 of 6 Answers

The Column Can be changed by using the following command


sp_rename   'Tablename.OldColumnname',       'new columnname',   'COLUMN'

The sp_rename factor and the 'COLUMN' string are required. The TableName factor is the name of the table that the column belongs to. The ColumnName is the current name of the column. The NewColumnName is the desired name you want to give to the column.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions