I have created a code which will rename multiple tables within a database, if it could be helpful to anyone:-- = Renaming multiple tables within a database = --DECLARE @currentTableName SYSNAMEDECLARE @newTableName SYSNAMEDECLARE @NameToBeAppended VARCHAR(100)DECLARE @currentID INTSET @NameToBeAppended = 'zzz'-- Creating a table which will hold all the table names within a databaseIF EXISTS (SELECT * FROM sysobjects WHERE id = object_id(N'[DBO].[tblListOfTableName]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1) DROP TABLE [DBO].[tblListOfTableName]SELECT DISTINCT IDENTITY(int, 1,1) AS TableID, TABLE_NAME AS TableNamesINTO tblListOfTableNameFROM INFORMATION_SCHEMA.COLUMNSWHERE TABLE_NAME <> 'tblListOfTableName'WHILE EXISTS (SELECT * FROM tblListOfTableName) BEGIN -- Pointing to the first table from the list SELECT @currentID = (SELECT MIN(TableID) FROM tblListOfTableName) SELECT @currentTableName = TableNames FROM tblListOfTableName WHERE TableID = @currentID SELECT @newTableName = @NameToBeAppended + @currentTableName PRINT 'Old Table Name: ' + @currentTableName PRINT 'New Table Name: ' + @newTableName -- Renaming table EXEC SP_RENAME @currentTableName, @newTableName -- Deleting the table name out of the list to deal with the next one until the table is empty DELETE FROM tblListOfTableName WHERE TableID = @currentID END