How to: Remove Data Sources from the Data Sources Window

The items in the Data Sources Window are synchronized with your project so removing items from a project will be reflected in the Data Sources window. For example, if your project has a data source based on a Web service, removing the Web reference from your project removes the Web service data source from the Data Sources window.

To remove a database data source from the Data Sources window

  • Select the dataset in Solution Explorer and remove it from the project.

    The corresponding data source disappears from the Data Sources window.

    Note

    If the data source is still visible in the Data Sources window, then click the Refresh button in the window.

To remove a Web service data source from the Data Sources window

  • Right-click the Web service data source in the Data Sources window and choose Remove Web Reference.

    –or-

  • Right-click the Web reference in Solution Explorer, and choose Delete.

To remove an object data source from the Data Sources window

  • Right-click the object data source in the Data Sources window and select Remove Object.

See Also

Concepts

Data Sources Overview

Other Resources

Data Walkthroughs

Getting Started with Data Access

Connecting to Data in Visual Studio

Preparing Your Application to Receive Data

Fetching Data into Your Application

Displaying Data on Forms in Windows Applications

Editing Data in Your Application

Validating Data

Saving Data