Your First ADO .NET Program

We will now create a simple command-line program using ADO .NET. We will access a table, list the rows to the console, and close the connection.

1.
Begin by opening the Visual Studio integrated development environment (IDE).
2.
Next select the File|New|NewProject menu item. The New Project dialog opens. On the left you will notice a tree view with several different types of project groups listed: VB, Visual C# and Visual C++, and others.
3.
Select the VB tree node. In the list view on the right you will see a number of project templates.
4.
Scroll down and select Console Application.
5.
Change the name of the project to ADOBook1. If you wish, you can create a subfolder under the default location so you can group ...

Get ADO.NET Programming in 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.