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?
Tell me more
×
Database Administrators Stack Exchange is a question and answer site for
database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
|
migrated from stackoverflow.com Jan 18 '12 at 1:21
|
You will be able to do this after the restoration process, when the database is in |
|||
|
|
|
No you can not change an object name (other than the actual database) when you restore the database. You'll have to wait for the database to be restored and brought online (WITH RECOVERY) before you can change object names. If the object was renamed in the source database and you are rolling the logs forward the object will automatically be renamed as the logs are rolled forward. |
|||
|
|