|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
How to: Create a Typed Dataset
For information on creating datasets programmatically, see Creating a DataSet (ADO.NET).
Changes to the database schema (for example, new tables, new or modified columns) are not automatically reflected in existing typed datasets. Edit the dataset using the Data Source Configuration Wizard to update the existing dataset.
To create a dataset with the Data Source Configuration Wizard
On the Data menu, click Add New Data Source to start the Data Source Configuration Wizard.
Select Database on the Choose a Data Source Type page.
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
On the Project menu, click Add New Item.
Select DataSet from the Add New Item dialog box.
Type a name for the dataset.
The dataset is added to the project and opens in the Dataset Designer.
Drag items from the DataSet tab of the Toolbox onto the designer. For more information, see How to: Edit a Dataset.
Drag items from an active connection in Server Explorer/Database Explorer onto the Dataset Designer.