Change Name Of Table. How to Use SQL RENAME TABLE Statement to Change Table Name ALTER TABLE Statement to Change the Name. Columns can be also be given new name with the use of ALTER TABLE.

Let us take an example of a table named STUDENTS now due to some reason we want to change it. In the Table Name box type a new table name and press Enter. Declare sql varchar8000 table varchar1000 oldschema varchar1000 newschema varchar1000 set oldschema dbo set newschema exe while existsselect from systables where schema_nameschema_id oldschema begin select table name from systables where object_id inselect minobject_id from systables where schema_nameschema_id oldschema.
To rename a table.
How to Use SQL RENAME TABLE Statement to Change Table Name ALTER TABLE Statement to Change the Name. Display the first five rows of the table T. RENAME employees to emp. Table Naming Best Practicesxlsm 235 KB Benefits of Prefixing Table Names.