How can I in change the table name using a query statement?
I used the following syntax but I couldn\'t find the rename keyword in SQL server 2005.
A
RENAME TABLE old_table_name TO new_table_name;
execute this command
sp_rename 'Employee','EData'
rename table name :
RENAME TABLE old_tableName TO new_tableName;
for example:
RENAME TABLE company_name TO company_master;
ALTER TABLE table_name RENAME TO new_table_name; works in MySQL as well.
Alternatively:
RENAME TABLE table_name
TO new_table_name
;