Cannot attach database

  • Msg 5120, Level 16, State 101, Line 1

    Unable to open the physical file "\\servername\sharename\filename.mdf". Operating system error 5: (Access is denied.).

    This is the error i get when trying to attach using script and through the GUI

    running SQL 2005 enterprize service pack 2 build SQL Server 9.0.3152

    Moving the database to a new server

  • You cannot attach a database on a network drive. Copy the file to the server's drives and you'll be able to attach it.

    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

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

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