Web Analytics Made Easy - Statcounter

How to rename a Table in Sql Server

To rename a column in a SQL Table following command can be reused:
SP_RENAME  ‘old table name’, ‘New table name’

For example, if we want to rename the table from employee to employeemaster, following command can be used.

SP_RENAME  ’employee’, ’employeemaster’

This command will rename the table from employee to employeemaster.


Discover more from Technology with Vivek Johari

Subscribe to get the latest posts sent to your email.

2 thoughts on “How to rename a Table in Sql Server”

Leave a Reply

Scroll to Top

Discover more from Technology with Vivek Johari

Subscribe now to keep reading and get access to the full archive.

Continue reading