HOW TO RENAME A COLUMN NAME
Answers were Sorted based on User's Feedback
Answer / ravikv
SP_Rename 'dbo.table_name.column_name','new column_name'.
Is This Answer Correct ? | 27 Yes | 4 No |
Answer / ram&saran
SP_RENAME '<table_name>.<old_column_name>','<new_column_name>'
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / praveen kumar.dandu
suppose we had a table name emp and columns ename and sal.
<sql>alter table emp rename column sal to salary;
it wll rename the column sal to salary
Is This Answer Correct ? | 5 Yes | 12 No |
How to use subqueries with the in operators in ms sql server?
What are different types of statement?
What do you mean by collation recursive stored procedure?
What is a partitioned view?
What is unique key constraint?
What Is Rdbms?
How can you check the version of sql server?
what are the advanced features in sql 2008?
How to add more data to the testing table in ms sql server?
How to Check Whether a Global Temporary Exists in a SQL Database or not?
How to select all columns of all rows from a table with a select statement in ms sql server?
Explain why variables called the most powerful component of ssis?