How do I connect to a database using Visual Web Developer Express 2008

Posted on 2009-05-02
Last Modified: 2013-11-27
I recently installed Visual Web Developer Express 2008 and SQL Server 2008 Express Edition. I created a database on the server, a website on VWD and when attempting to make a database connection from VWD I get the message The file is in use by another program. Any help would be appreciiated.
Question by:jbotts
    LVL 7

    Accepted Solution

    Go to the Server Explorer window first. Then select Connect to Database. Follow the prompt and you will have a connection.  Once you have the connection and start creating your website, please don't forge to include the web.config file.  as well as all the files in the folder where you created the website.  
    Te most important thing is go to your configuration and make sure that all settings are correct and that you are pointing to the instance in where your SQL server is.  I know that this might be a little bit too much but you need to watch this video to learn how to make a connection to it.
    LVL 75

    Expert Comment

    by:Anthony Perkins
    >> I get the message The file is in use by another program. <<
    Perhaps you are attempting to attach the database.  This usually occurs when you have inadvertently left AttachDbFilename="Some database file path goes here"  in your connection string.

    Author Closing Comment

    This was helpful. Thanks

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
    There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now