Training
Certifications
Books
Special Offers
Community




 
Programming Microsoft® SQL Server™ 2000 with Microsoft Visual Basic® .NET
Author Rick Dobson
Pages 704
Disk 1 Companion CD(s)
Level Int/Adv
Published 05/29/2002
ISBN 9780735615359
ISBN-10 0-7356-1535-7
Price(USD) $59.99
To see this book's discounted price, select a reseller below.
 

More Information

About the Book
Table of Contents
Sample Chapter
Index
Companion Content
Related Series
Related Books
About the Author

Support: Book & CD

Rate this book
Barnes Noble Amazon Quantum Books

 


Chapter 10: Programming Windows Solutions with ADO.NET



10   Programming Windows Solutions with ADO.NET

Chapter 1 introduces you to ADO.NET conceptually and shows you how to create a simple ADO.NET application using Visual Studio .NET graphical design tools. This chapter builds on the ADO.NET introduction in Chapter 1 and the intervening chapters that enhance your SQL Server and Visual Basic .NET skills. Think of this chapter as a "how to" guide for solutions to typical database problems with ADO.NET. The focus is on programming solutions for Windows applications. Chapter 11 delves into creating solutions with ASP.NET, and Chapter 12 puts the spotlight on XML issues as they relate to ADO.NET and SQL Server.

The chapter has five major sections.

  • The chapter begins with a brief overview of ADO.NET design issues. This section drills down into the data set object model. This material will help you to programmatically coordinate data set objects with SQL Server database objects.
  • Next the chapter presents programming samples for making a connection to a SQL Server database. This presentation also demonstrates how to secure access to your SQL Server databases. (See Chapter 7 for more on SQL Server security.)
  • Coverage moves from making a connection to forward-only, read-only data access. Several samples reveal the flexibility you can achieve with this form of data access for displaying data. In addition, you learn how to dynamically configure the source that a DataReader object contains at run time.
  • The next section introduces how to display data set objects with Windows Forms. It covers how to programmatically bind Windows Forms controls—such as text boxes, combo boxes, and data grids—to data set objects. You'll also learn how to display parent-child data relationships so that users can control the display of child data by manipulating a control for the parent data.
  • The chapter concludes with a section that demonstrates how to update, insert, and delete rows in a SQL Server database from a Windows form.

All the samples throughout this chapter use the MyADODOTNETSamples solution. You can open the solution file (MyADODOTNETSamples.sln) in Visual Studio .NET. This chapter provides specific instructions for launching each sample from the solution. By following the instructions, you'll gain familiarity with how to start a Windows application from an element within a solution other than Form1— the default startup object.


Next



Last Updated: May 31, 2002
Top of Page