Restore to only 3 logical names

  • When I performed a backup of the SQL 2005 database it had 5 logical names and db was 350GB's with 50% free.

    Is it possible to restore that backup to to a new system with only 3 logical names which a total size of like 250gb's?

    Anyone have any clues???

    Thx in advance

  • What do you mean 'logical names'?

    A restore puts the database down exactly as it was at the time of backup.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • As stated, the restore puts the database back as it was at the time the backup has been created.

    ( files, file size )

    However, you can move the files using the "move" parameter of the restore command (check books online)

    After that restore you can:

    - shrink the files ( and rebuild all related objects afterward because of fragmentation )

    - reduce the number of files.

    If all files belong to the same/a single filegroup, you can mark a file (except the actual primary file) to be emptied, then you can remove the file.

    ( check "dbcc shrinkfile" in books online emptyfile parameter and "alter database" remove file)

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

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

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