ASP.NET Logo Back to WebMatrix Home

 
Creating A Database
Connect to an existing database
You can connect to an existing database from within the ASP.NET Web Matrix development environment.

In this walkthrough, you will connect to the database we previously built in an earlier section.

  1. Click the Data tab in the Workspace window.

     
  2. Click the New Connection button on the Data window toolbar. 

    New Data Connection

     

  3. You will see the Connect to Database dialog box appear.

     

    Select Orders Database

  4. Type localhost in the Server box.

     
  5. Click the Windows authentication radio button.

     
  6. Click the Database drop-down. ASP.NET Web Matrix will connect to the data source and populate the Database drop-down with database names. Select the Orders database.

     
  7. Click OK

     
  8. You will see a tree view in the Data window that contains a parent node named localhost.Orders. The parent node contains two child nodes - one named Tables and another named Stored Procedures

    Data Window Orders Database

Next Step >>