Click here to Skip to main content
15,922,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Unable to open the physical file "D:\Matrimonial_Project\App_Data\Lifepatner.mdf". Operating system error 32: "32(The process cannot access the file because it is being used by another process.)".

An attempt to attach an auto-named database for file D:\Matrimonial_Project\App_Data\Lifepatner.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

The mdf file is already added to the
Posted
Updated 7-May-12 0:55am

Run "SQL Server Management Studio" as administrator.
It should solve the problem
 
Share this answer
 
This error specifies that you have already attached the file to Sql server on the machine may be another instance of Sql server; so it is giving the error

Try connection to other Sql instances on the computer.

You may get an idea of instances runnning on the computer from Sql Server Configuration Manager


Hope it helps........

Best of luck
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900