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

Define candidate key, alternate key, and composite key.

965


Define synonym?

1222


What is normalization? Explain its different types?

1149


How to make remote connection in database?

1047


How many clustered indexes there can be on table ?

1069


How real and float literal values are rounded?

1195


What is sql server query analyzer?

1095


What do you mean by an execution plan?

1186


How do you rebuild an identity column?

994


Explain how you can configure a running aggregate in SSRS?

169


How to list all tables in the database using odbc_tables()?

1113


How to recompile stored procedure at run time?

1116


how we use window authentication connection with sql server.?

1208


What is the definition for sql server 2000?

1137


Explain what is the difference between union and union all?

1070