The SQL query that I have used is :
SQL
ALTER TABLE oldtable RENAME TO newtable;
But, it gives me an error.
This is what I use:
EXEC sp_rename 'MyTable', 'MyTableNewName';