Solved

OS 32 Connection Error

Posted on 2011-03-01
2
680 Views
Last Modified: 2012-08-13
I am preparing for online training for “VS2010 C# access to an SQL 2008 R2 database". I created a test DB and populated it using SQL Server Management Studio. When I try to view it from VS2010 an OS err 32 occurs. No other process is connected and I disconnected SQL SMS and closed it before I attempted to connect using the VS2010 Server Explorer. This is all taking place on my standalone XP LAB workstation. The full dialog box message is as follows:

Microsoft Visual Studio
Unable to open the physical file "D:\SQL Svr\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\DBD-Test .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:\SQL Svr\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\DBD-Test.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
0
Comment
Question by:Dennis Dahlman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
mordi earned 125 total points
ID: 35016834
Hi,
The error says that you are trying to open a database data file from VSS.
To view the dabase from server explorer first  create a connection to the database by "add connection" and  don't select  "Microsoft SQL Server database file". You select  "Microsoft SQL Server".
0
 

Author Closing Comment

by:Dennis Dahlman
ID: 35017669
Ooooops! You where exactly correct! I was trying to select "Microsoft SQL Server database file". Thank you!
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question