Renaming logical files

  • Hi,

    Having trouble renaming logical db files using the Microsoft described way;

    ALTER DATABASE dbname

    MODIFY FILE(NAME=DB_Data, NEWNAME=DBTEST_Data)

    QA does not recognise 'NEWNAME' as an option but it's the Sql2K Manual !?!?

    ALTER DATABASE database

    { MODIFY FILE < filespec > }

    Expand or collapse text< filespec > ::=

    ( NAME = logical_file_name

        [ , NEWNAME = new_logical_name ]

        [ , FILENAME = 'os_file_name' ]

        [ , SIZE = size ]

        [ , MAXSIZE = { max_size | UNLIMITED } ]

        [ , FILEGROWTH = growth_increment ] )

     
    Can anyone shed any light on this ? or describe an alternate way I can get it to work ?
     
    Many thanks in advance.
     
  • Please see the below link:

    http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=5&messageid=139298



    Good Hunting!

    AJ Ahrens


    webmaster@kritter.net

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

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