Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
2.85/5 (3 votes)
How to rename table name in MS SQL Server.

Thanks
Posted
Comments
[no name] 30-Apr-13 9:43am    
Use sp_rename
SLNS001 30-Apr-13 9:45am    
thanks, worked.
Maciej Los 30-Apr-13 11:44am    
Please, post it as an answer ;)

1 solution

Hi,

To rename a table in SQL Server, use the sp_rename command:
SQL
sp_rename old_table_name, new_table_name

Thanks and Regards,
Imdadhusen
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900