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

what is a traditional network library for sql servers? : Sql server database administration

0 Answers  


Can we use max in where clause?

0 Answers  


how many no of arguments can be passed in procedures and functions

1 Answers   ABC,


What do you understand by replication in sql server? Mention the different types of replication in sql server.

0 Answers  


What is SQL server agent?

2 Answers   HCL, SAP Labs,


Does sql server use java?

0 Answers  


When cursors are useful?

0 Answers  


How do you start single user mode in clustered installations?

0 Answers  


What is the difference between resultset and resultsetmetadata?

0 Answers  


How do you troubleshoot errors in a SQL Server Agent Job?

0 Answers  


what is a join and explain different types of joins? : Sql server database administration

0 Answers  


Can you please explain the difference between primary keys and foreign keys?

0 Answers  


Categories