What you immediately find with ADO is that there's about a hundred ways to do anything. You can open a database, then create a command
object to open a recordset object, or you can just open a command object and then open a recordset or you can just create a recordset object and specify the database and table right in its argument list. In this chapter, I give but one fairly comprehensive way to open a database and examine its records. And since ADO also supports late binding, I try to duplicate this comprehensive approach in Visual C++, Visual Basic, and Visual J++. The examples in this chapter therefore include:
Example 42 Accessing a Database Using Visual Basic and ADO where we do the same for VB.