
Programming Databases, Part 1
Database programming is another truly enormous topic, so there isn’t room to cover it all here.
However, Visual Studio provides tools that make some simple kinds of database programs so
easy to write that your education won’t be complete until you’ve written a few.
In this lesson, you learn how to make a simple database application. You learn how to connect
to a database, load data, let the user navigate through records, and save any changes.
CONNECTING TO A DATABASE
The first step in building a database program is giving it a connection to the data. You can do
this interactively at design time quite easily, although quite a few steps are involved.
1. First open the Data menu and select Add New Data Source to display the dialog shown
in Figure 35-1. As you can see in the figure, there are several different places you might
want the program to get data.
FIGURE 351
35
596906c35.indd 395 4/7/10 12:34:50 PM