Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 10th, 2006, 09:05 PM
Authorized User
Join Date: Oct 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to salemkoten
Default Connect to MSSQL 2005 express

I'm using VBnet 2005.
When I create a new connect, there is a error dialogbox:

Unable to open the physical file "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\master.mdf". Operating system error 32: "32(The process cannot access the file because it is being used by another proccess.)". An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\master.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

Then I click OK, the connection dialogbox disappears.
I'm sure this path and file is correct.

Thanks in advance.
Old October 10th, 2006, 09:38 PM
SQLScott's Avatar
Wrox Author
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts

I would try two things. First, stop and restart the SQL Server service (I am assuming that this is on your own box because I wouldn't recommend this otherwise). Second, if that doesn't work, reboot your pc.

I don't have Express at this location but I do at another location adn I will try this when I get there. I just tried this against my Developer Edition and it worked without a problem.

Scott Klein
Author - Professional SQL Server 2005 XML
Old October 11th, 2006, 04:46 AM
Authorized User
Join Date: Oct 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to salemkoten

I've tried to stop and restart---> no result, then reboot sys but I've received the same one.

Similar Threads
Thread Thread Starter Forum Replies Last Post
connect to SQL EXPRESS 2005 angelboy C# 2005 0 June 8th, 2007 01:34 PM
MSSQL 2005 and MSSQL 2000 tiredcat Visual Basic 2005 Basics 0 April 9th, 2007 12:56 AM
Connect to MSSQL without PHP Library echovue Pro PHP 0 April 2nd, 2007 07:19 PM
Connect to MSSQL using IP Address echovue PHP How-To 1 April 12th, 2006 03:15 AM
Help!!!! MSSQL will not connect jts7979 Classic ASP Databases 1 December 12th, 2004 11:34 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.