Use sp_rename:
EXEC sp_rename 'Stu_Table', 'Stu_Table_10'
You can find the documentation for this procedure on MSDN .
If you need to include a schema name, this can only be included in the first parameter (that is, it cannot be used to move a table from one schema to another). So, for example, this is valid:
EXEC sp_rename 'myschema.Stu_Table', 'Stu_Table_10'
David M May 20 '09 at 8:21 2009-05-20 08:21
source share