Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Quote:
Server Error in '/CMS' Application.
Unable to open the physical file "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\Content Pro.mdf". Operating system error 32: "32(The process cannot access the file because it is being used by another process.)".
Unable to open the physical file "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\Content Pro_log.ldf". Operating system error 32: "32(The process cannot access the file because it is being used by another process.)".
Cannot open database "Content Pro" requested by the login. The login failed.
Login failed for user 'SAI\munna'.
File activation failure. The physical file name "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\Content Pro_log.ldf" may be incorrect.
Posted
Updated 4-May-14 23:59pm
v3

According to the path you provided it is highly possible that these are files for active databases in your SQL server. You can not open files while the SQL uses them.
It seems that you try to use AttachDbFileName in your connection string, do not! Use Server, Initial Catalog, User and Password to access your DB!
 
Share this answer
 
This Might Help You
..
SQL Server management studio 2008 R2 –> connect to my server –> right click on my database name –>tasks –> take offline.
..return to visual studio and reatttached the database it will work...
Thanks
 
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