hi,
i had to create a test database(C) from a backup of a present one(B). while trying to restore C from the backup of B , it kept giving errors saying the datafile was in use, so i took B offline and tried again, the same thing happened and then i detached B and tried once more and it worked. the problem now is i'm trying to re attach B and it gives an error " Create file encountered operating system error 32(error not found) while attempting to open or create the physical file '...B.mdf path..'
i have a feeling that i'm having this error because the db was offline before i detached it, but i'm not sure and i don't know what to do in order to get things back to normal.
i'd appreciate any help, thanks.
i had to create a test database(C) from a backup of a present one(B). while trying to restore C from the backup of B , it kept giving errors saying the datafile was in use, so i took B offline and tried again, the same thing happened and then i detached B and tried once more and it worked. the problem now is i'm trying to re attach B and it gives an error " Create file encountered operating system error 32(error not found) while attempting to open or create the physical file '...B.mdf path..'
i have a feeling that i'm having this error because the db was offline before i detached it, but i'm not sure and i don't know what to do in order to get things back to normal.
i'd appreciate any help, thanks.