Answers for "tsql alter table name"

SQL
3

tsql rename table

-- SQL SERVER -- don't put the schema in the 'new_name' field, otherwise your table might end up looking something like schema.schema.new_name
EXEC sp_rename 'schema.old_name', 'new_name';
Posted by: Guest on October-08-2021
2

alter table name sql

-- Microsoft SQL style
EXEC sp_rename 'TableOldName', 'TableNewName';
Posted by: Guest on July-11-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language