Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Accessing Data
 How to: Create a Typed Dataset

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Data Access in Client and Middle-Tier Programming 
How to: Create a Typed Dataset 

You create a typed DataSet using the Data Source Configuration Wizard or the Dataset Designer.

NoteNote

For information on creating datasets programmatically, see Creating a DataSet.

Creating Typed Datasets with the Data Source Configuration Wizard or with the Dataset Designer

To create a dataset with the Data Source Configuration Wizard

  1. On the Data menu, click Add New Data Source to start the Data Source Configuration Wizard.

  2. Select Database on the Choose a Data Source Type page.

  3. Complete the wizard and a typed dataset is added to your project. For more information, see Data Source Configuration Wizard.

To create a dataset with the Dataset Designer

  1. On the Project menu, click Add New Item.

  2. Select DataSet from the Add New Item dialog box.

  3. Type a name for the dataset.

  4. Click Add.

    The dataset is added to the project and opens in the Dataset Designer.

  5. Drag items from the DataSet tab of the Toolbox onto the designer. For more information, see How to: Edit a Dataset.

    -or-

    Drag items from an active connection in Server Explorer/Database Explorer onto the Dataset Designer.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker