Answers for "mssql update with table rename"

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

Code answers related to "SQL"

Browse Popular Code Answers by Language