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 make a remote connection in a database?
can an order by clause be used in a creation of a view?
What are partitioned views and distributed partitioned views?
What is the difference between for trigger and after trigger?
What are the steps to take to improve performance of a poor performing query? : sql server database administration
What is use of attribute hierarchy ordered ? : sql server analysis services, ssas
How to create a dml trigger using create trigger statements?
How to populate a table in sql server?
What are the difference between data mart and data warehouse? : sql server analysis services, ssas
what is a join and explain different types of joins? : Sql server database administration
How to select an exiting database using mssql_select_db()?
How can u get the number of pupils connecting the database?