• tinausa (6/18/2013)


    The database is in use.

    You cannot be connected to the database you're restoring into.

    USE MASTER

    GO

    RESTORE DATABASE ....

    and make sure that you don't have another window connecting to that DB.

    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