HOW TO RENAME A COLUMN NAME

Answers were Sorted based on User's Feedback



HOW TO RENAME A COLUMN NAME..

Answer / ravikv

SP_Rename 'dbo.table_name.column_name','new column_name'.

Is This Answer Correct ?    27 Yes 4 No

HOW TO RENAME A COLUMN NAME..

Answer / ram&saran

SP_RENAME '<table_name>.<old_column_name>','<new_column_name>'

Is This Answer Correct ?    1 Yes 2 No

HOW TO RENAME A COLUMN NAME..

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

Post New Answer

More SQL Server Interview Questions

How to use subqueries with the in operators in ms sql server?

0 Answers  


What are different types of statement?

0 Answers  


What do you mean by collation recursive stored procedure?

0 Answers  


What is a partitioned view?

0 Answers  


What is unique key constraint?

0 Answers  






What Is Rdbms?

0 Answers   Accenture,


How can you check the version of sql server?

0 Answers  


what are the advanced features in sql 2008?

2 Answers   Wipro,


How to add more data to the testing table in ms sql server?

0 Answers  


How to Check Whether a Global Temporary Exists in a SQL Database or not?

2 Answers  


How to select all columns of all rows from a table with a select statement in ms sql server?

0 Answers  


Explain why variables called the most powerful component of ssis?

0 Answers  


Categories