How to rename logical name of database file?

  • Hi.

    I can rename database, I can rename physical name of a database file, but how to rename a logical name of a database file ?

    Thanks

  • From BOL:

    To modify the logical name of a data file or log file, specify in NAME the logical file name to be renamed, and specify for NEWNAME the new logical name for the file.

    Thus:

    MODIFY FILE (NAME = logical_file_name, NEWNAME = new_logical_name...).

    as part of alter database statement

    ---------------------------------------------------------------------

  • Thanks, Goerge.

    This is exacltly what I want. It worked perfevtly.

  • no probs.

    ---------------------------------------------------------------------

Viewing 4 posts - 1 through 3 (of 3 total)

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