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

What are subqueries in sql server? Explain its properties.

1072


Explain the different types of joins?

1046


Explain go command in sql server?

1090


What is normalization of database?

1177


What is a filestream?

1046


How to specify the collation for a character data type in ms sql server?

1087


What are character string data types in ms sql server?

1349


Every night you run a full backup after every 3 three hours you make a differential backup every hour you make an incremental backup in a worst-case scenario, how much work you can lose?

1003


What is field with example?

976


What is the use of floor function in sql server?

1130


Explain the categories of stored procedure?

981


How to use column default values in insert statements in ms sql server?

1103


What’s the use of custom fields in report?

988


What are the different types of collation sensitivity?

1177


How to download and install the scaled-down database adventureworkslt?

1040