When is the logical file name referenced?

  • I've read on BOL.

    "SQL Server 2000 files have two names:

    logical_file_name is a name used to refer to the file in all Transact-SQL

    statements.

    The logical file name must conform to the rules for SQL Server identifiers

    and must be unique to the database."

    When is the logical file name referenced?

    I've found only ALTER DATABASE.

    Thanks

  • Another case where you can use the logical filename is BACKUP/RESTORE of a databasefile.

    Markus

    [font="Verdana"]Markus Bohse[/font]

  • I believe only in the ALTER or RESTORE statements.

  • Don't forget BACKUP.

    BACKUP DATABASE MyNwind

       FILE = 'MyNwind_data_1',

       FILEGROUP = 'new_customers',

       FILE = 'MyNwind_data_2',

       FILEGROUP = 'first_qtr_sales'

       TO MyNwind_1

  • There is also DBCC

    DBCC SHRINKFILE (DataFil1, 7)

  • Thank's a lot guys!!!!!

     

Viewing 6 posts - 1 through 5 (of 5 total)

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