change table name in sql command code example Example: alter table name sql -- Microsoft SQL style EXEC sp_rename 'TableOldName', 'TableNewName';