Using the ADO Objects

ADO was introduced before the .NET initiative and has since become an essential part of many Web sites and Visual Basic applications. As with any external object, before you can use ADO you must add a reference to it, as shown in Figure 21.1.

Figure 21.1. ADO is located under the “COM” tab of the Add Reference dialog box.

Note

If you are developing a new application, ADO.NET (discussed in the next chapter) is the preferred method of data access in Visual Studio .NET.

Once you have added a reference to ADO, the objects that make up the ADO object model are available to use in your program. These objects are listed in

Get Special Edition Using Microsoft® Visual Basic® .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.