Sql-server – Rename database object during restore

restoresql server

Is there a way to rename database objects such as tables, stored-procedures, etc, during a restore of a .BAK file to a new database?

Best Answer

You will be able to do this after the restoration process, when the database is in NORECOVERY mode. Concurrently? No, there isn't a way.