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 to add a new column to an existing table with "alter table ... Add" in ms sql server?

0 Answers  


Is mysql the same as sql server?

0 Answers  


What is the syntax for encrypting a column in SQL Server?

0 Answers   MindCracker,


what are acid properties? : Sql server database administration

0 Answers  


How to return the date part only from a sql server datetime datatype?

0 Answers  


What is the difference between char and varchar2 datatype in sql?

0 Answers  


Explain the different index configurations a table can have?

0 Answers  


What happens to a trigger with multiple affected rows?

0 Answers  


What is subquery in sql?

0 Answers  


Where cross join is used?

0 Answers  


How many levels of sp nesting are possible?

0 Answers  


wat is the main diff between sql server 2000and sql server 2005

6 Answers   Jade Software,


Categories