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

Write a SQL query in order to merge two different columns into single column?

629


What is named calculation? : sql server analysis services, ssas

540


Tell me what is normalization? Explain different forms of normalization?

552


Tell me the phases a transaction has to undergo?

558


Explain syntax for viewing trigger?

547






How is a full-text index updated?

546


What is subquery explain with example?

626


Where do we use trace frag?

579


What is a fill factor?

630


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

565


Why I can not enter 0.001 second in date and time literals in ms sql server?

546


What are the disadvantages of indexes?

540


what is the maximum size of a row? : Sql server database administration

542


How can you stop stored procedures from recompiling?

494


What are the steps you will take to improve the performance of a poor performing query?

606