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

Why use cursor in sql server?

1131


What is difference statement and preparedstatement?

1035


What is a cache in ssrs?

138


What do you understand by replication in sql server? Mention the different types of replication in sql server.

994


what's new in sql server 2016?

1003


What is the difference between a stored procedure and a user defined function?

1062


What is the use of @@spid?

1048


What stored by the model? : sql server database administration

1003


What have included columns when we talk about sql server indexing?

1076


What is the fastest way to permanently delete a 1 million row table named customers?

1327


What are the mathematical functions supported by sql server 2005?

1125


What is sql server used for?

1099


what is raid and what are different types of raid configurations? : Sql server database administration

1103


What's the information that can be stored inside a bit column?

1069


How should i optimize the time for execution of stored procedure having single input and many output from the different tables?

1956