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

Can we create clustered index on composite key?

686


How to remove duplicate rows from table except one?

742


Explain the database you used in your final year project?

712


What is the difference between having clause and where clause in sql server?

778


Mention the 3 ways to get a count of the number of records in a table.

718






what are cursors? : Sql server database administration

720


What are the key configuration files for sql server reporting services ?

150


Explain primary key, foreign key and unique key?

745


What is tempdb in sql server?

706


Explain how does the report manager work in ssrs?

705


What is update locks?

660


What is t-sql script to take database offline – take database online.

792


in the physical file layout, where should the transaction log be stored in relation to the data file? : Sql server administration

739


Describe different Processing Modes offered by SSRS?

202


What is abstracting periodical?

699