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 replace null values in expressions using isnull()?
What is a non equi join?
optimization techinques
What stored by the model?
What is the difference between varchar and nvarchar datatypes?
wat is mean by normalization?......programing defination i need...(i know basic defination)
What are the types of user defined functions in sql server?
What is the purpose of update statistics and scope_identity() function?
What are the filtered indexes?
what is replication? where do u use Go Keyword?
How can we delete Duplicate row in table?
How would you choose between a clustered and a non-clustered index?