This tutorial illustrates using 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 VC++ Extensions; Microsoft® Visual Basic®, Scripting Edition; 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 based on the ADO programming model. It discusses each step of the programming model individually. In addition, it illustrates each step with a fragment of Visual Basic code. At the end, it restates and integrates the code fragments as a Visual Basic example.
The code example is repeated in other languages, however, without the discussion. Each step in a given programming language tutorial is marked with the corresponding step in the programming model and descriptive tutorial. Use the number of the step to refer to the discussion in the descriptive tutorial.
Because this tutorial consists of several small fragments of code, you cannot execute the code as written.
The ADO programming model is restated below. Use it as a roadmap as you proceed through the tutorial.
ADO Programming Model with Objects
Next Step 1