Microsoft Visual Basic 2005 Step by Step (Step by Step (Microsoft))

Chapter 18

Getting Started with ADO.NET

After completing this chapter, you will be able to:

In Part IV, you'll learn how to work with information stored in databases and Web sites. First, you'll learn about Microsoft ADO.NET, the newest paradigm for working with database information, and you'll learn how to display, modify, and search for database content by using a combination of program code and Windows Forms controls. Microsoft Visual Studio 2005 was specifically designed to create applications that provide access to a rich variety of data sources. These custom interfaces have traditionally been called database front ends, meaning that through your Visual Basic application, the user is given a more useful window into database information than simply manipulating raw database records. However, a more appropriate description in Visual Studio 2005 is that you can build datacentric applications, meaning that through your application, the user is invited to explore the full potential of any number of rich data source connections, whether to local or remote locations, and that the application places this data at the center of the user‘s computing experience.

In this chapter, you'll take your first steps with ADO.NET and with datacentric applications. You'll use the Data Source Configuration Wizard to establish a connection to an Access database on your system, you'll create a dataset that represents a subset of useful fields and records from a database table, and you'll use the Dataset Designer and Data Sources window to examine dataset members and create bound objects on your forms. You'll also learn how to use TextBox and MaskedTextBox controls to present database information to your user, and you'll learn to write SQL SELECT statements that filter datasets (and therefore what your user sees and uses) in interesting ways.

Upgrade Notes: Migrating Visual Basic 6 Code to Visual Basic 2005

The features in Visual Studio related to database programming have changed significantly in each recent release of the software. Although continually learning new techniques can be a source of frustration, the rapid pace of change can be explained partially by the relative newness of distributed and multiple-tier database application programming in Windows, as well as technical innovations that are beyond the control of the Visual Studio development team. If you're experienced with Microsoft Visual Basic .NET 2003, you'll notice several new windows and tools in Visual Studio 2005, although the underlying dataset model introduced with ADO.NET is still the same. (Microsoft ADO.NET 1.1 has been upgraded to Microsoft ADO.NET 2.0 with this release.) If you're experienced with Microsoft Visual Basic 6, you'll notice many new features in Microsoft Visual Basic 2005, including the following:

Категории