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 / mohan

Rename a table
This example renames the customers table to custs.

EXEC sp_rename 'customers', 'custs'

B. Rename a column
This example renames the contact title column in the
customers table to title.

EXEC sp_rename 'customers.contacttitle', 'title', 'COLUMN'

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use "begin ... End" statement structures in ms sql server?

1050


Is it safe to delete log files?

920


What are the advantages of using stored procedures in sql server?

1013


How to create a simple table to test triggers in ms sql server?

979


What are the five major components of a dbms?

931


Can you use order by when defining a view?

979


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

963


What is failover clustering overview?

1091


How can you set the threshold at which sql server will generate keysets asynchronously?

994


How to use go command in "sqlcmd"?

1211


What is lookup override?

1043


What is multilevel indexing?

930


how can you attach more than 20 ldf files in sql server

2004


How do I open a .db file?

1042


Can we use where and having clause together?

1048