restore with modify datafiles

  • I need to restore the databases since the datafile names are same in server so i need to modify the datafiles (primary\log files ) with a new file names while restoring with move .

    any query for this .

  • You need to explicitly change the names through a script,

    ALTER DATABASE [DATABASE NAME] MODIFY FILE (

    NAME = [Old Logical Name]

    , NEWNAME = [New Logical Name]

    )

    GO

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

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