MDAC 2.5 SDK - ADO


 

ADO Tutorial

See Also

This tutorial illustrates how to use the ADO programming model to query and update a data source. First, it describes the steps necessary to accomplish this task. Then, the tutorial is repeated in Microsoft Visual Basic; Microsoft Visual C++, featuring Visual C++ Extensions; and Microsoft Visual J++, featuring ADO for Windows Foundation Classes (ADO/WFC).

This tutorial is coded in different languages for two reasons:

How the Tutorial is Presented

This tutorial is divided into steps that correspond to the ADO programming model. Each step is discussed and illustrated with a fragment of Visual Basic code. At the end of the tutorial, all the code fragments are integrated into a Visual Basic example.

The integrated example is then repeated in other programming languages. Each step in each programming language example is numbered. Use the number of the step to refer to the corresponding discussion in this descriptive tutorial.

The ADO programming model is stated below. Use it as a roadmap as you proceed through the tutorial.

ADO Programming Model with Objects

Next   Step 1: Open a Connection