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