Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 do I find the size of a sql server database?

0 Answers  


How to write stored procedure to update the data in 10 tables

4 Answers  


What is the need for group functions in sql?

0 Answers  


What is optimistic concurrency?

0 Answers  


Which virtual table does a trigger use?

3 Answers  


what is the information that can be stored inside a bit column? : Sql server database administration

0 Answers  


Explain Capacity planning to create a database? and how to monitor it?

0 Answers  


Explain the storage models of OLAP?

1 Answers  


what is differece between union and union all

6 Answers  


What is the importance of concurrency control?

0 Answers  


How to defragment indexes with alter index ... Reorganize?

0 Answers  


Explain about the command-line tool SQLCMD?

0 Answers  


Categories