Re: Renaming Logical Database File Names

  • Is there a way to rename the logical database file names during the database restore process? I know that I can do it after the database restore using the following command:

    ALTER DATABASE your_new_database

    MODIFIY FILE ( NAME = [current_logical_name], NEWNAME = [new_logical_name] )

    However, I don't see anything in the "RESTORE DATABASE" syntax that allows you to do that. Does this exist, or does it need to be done after the database restore?

  • You need to rename the logical name after completing the restore.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply