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 the table

Answer Posted / vishal

Rename a table using sp_rename

sp_rename <Old Table Name>, <New Column Name>


Rename a column using sp_rename
here as third argument we have to provide column. default
third argument for sp_rename is table.


sp_rename <table name>.<old Column Name>, <New Column Name>,
'column'

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How exceptions can be handled in sql server programming?

990


What are built in functions?

979


What is the difference between count () and rowcount ()?

998


How to make a column nullable?

1089


What is the osql utility?

940


Does sql server 2000 clustering support load balancing?

945


How do you manipulate data?

885


What is coalesce in sql server?

1035


Explain “@@rowcount” and “@@error” in sql server?

1060


What is oltp (online transaction processing)?

978


Explain nested trigger in sql?

1050


What is a dbms wizard?

998


Explain different types of index?

1032


How can we get count of the number of records in a table?

937


What is difference between commit and rollback when used in transactions?

944