Sams Teach Yourself ADO.NET in 24 Hours

Book description

ADO.NET is the data access model built into the .NET Framework. It replaces the old (and largely successful) ADO used in almost all Visual Basic and ASP applications built over the last few years. ADO.NET enables an application to communicate with any OLE database source (including Oracle, Sybase, Microsoft Access, and even text files). This book will present ADO.NET in a simple, easy -to-learn manner filled with many code examples and exercises. A reader with no previous knowledge of ADO.NET should be able to read this book and have a functional knowledge of new object model allowing them to retrieve and work with data from multiple data sources.

Table of contents

  1. Copyright
  2. About the Authors
  3. Acknowledgments
  4. Tell Us What You Think!
  5. Introduction
  6. Introducing the Microsoft .NET Framework and ADO.NET
    1. The Microsoft .NET Framework Class Library
    2. What Is ADO.NET?
    3. ADO.NET Versus ADO
    4. The System.Data Namespace
    5. The System.Data.SqlClient and System.Data.OleDb Namespaces
    6. Installing the Microsoft .NET Framework
    7. Summary
    8. Q&A
    9. Workshop
  7. Working with DataSets and DataTables
    1. Crash Course on Database Schema
    2. DataSet Overview
    3. Creating DataSet Schema
    4. Adding and Removing Data
    5. Summary
    6. Q&A
    7. Workshop
  8. Using T-SQL: A Crash Course
    1. Retrieving Data with SELECT
    2. Adding New Data with INSERT
    3. Modifying Data with UPDATE and DELETE
    4. Using the Built-in SQL Functions
    5. Summary
    6. Q&A
    7. Workshop
  9. Adding Relationships to DataSets
    1. Database Relationships and Constraints
    2. The DataRelation Object
    3. The DataSet Relations Collection
    4. Summary
    5. Q&A
    6. Workshop
  10. Connecting to a Data Source
    1. The Connection Object
    2. Connecting to Various Data Sources
    3. ODBC (Open Database Connectivity)
    4. Connection Pooling
    5. Summary
    6. Q&A
    7. Workshop
  11. Retrieving Data from the Data Source
    1. The Command Object
    2. Filling a DataSet with the DataAdapter
    3. Retrieving a Single Value from the Database
    4. Summary
    5. Q&A
    6. Workshop
  12. Modifying Database Data
    1. Using ExecuteNonQuery()
    2. Summary
    3. Q&A
    4. Workshop
  13. Using the DataReader and DataAdapter
    1. DataReader Versus DataAdapter
    2. Instantiating the DataReader
    3. Binding DataReader Results to a Web Control
    4. Stepping Through Data with the DataReader
    5. Limitations of the DataReader
    6. Summary
    7. Q&A
    8. Workshop
  14. Binding Data to List Controls
    1. Binding Data to Controls
    2. Simple Data Binding in Windows Forms
    3. Complex Data Binding in Windows Forms
    4. Summary
    5. Q&A
    6. Workshop
  15. Working with XML
    1. What Is XML?
    2. Reading XML
    3. Creating a DataSet from an XML File
    4. Serializing DataSets to XML
    5. Using XmlReader
    6. Summary
    7. Q&A
    8. Workshop
  16. Using the Built-In ASP.NET List Controls
    1. Some General Notes About List Controls
    2. Working with the Repeater
    3. Working with the DataGrid
    4. Working with the DataList
    5. Summary
    6. Q&A
    7. Workshop
  17. Formatting ASP.NET List Controls
    1. A Quick Overview of CSS
    2. Formatting the Repeater
    3. Formatting the DataList
    4. Formatting the DataGrid
    5. Summary
    6. Q&A
    7. Workshop
  18. Handling ADO.NET Errors
    1. Using Formal Error Handling (Ready, “Catch”!)
    2. Typical Errors to Handle
    3. Using RowError of the DataSet
    4. Summary
    5. Q&A
    6. Workshop
  19. Managing ADO.NET Concurrency
    1. Optimistic Versus Pessimistic Concurrency
    2. Coding for Optimistic Concurrency
    3. Comparing DataSet Values Against the Database for Optimistic Concurrency
    4. Using a Timestamp for Optimistic Concurrency
    5. XML and Optimistic Concurrency
    6. Summary
    7. Q&A
    8. Workshop
  20. Working with Stored Procedures
    1. What Are Stored Procedures?
    2. Executing a Stored Procedure
    3. Using Parameters
    4. Summary
    5. Q&A
    6. Workshop
  21. ADO Upgrade Concerns
    1. General Upgrade Issues from ADO to ADO.NET
    2. Accessing an ADO Recordset from ADO.NET
    3. Summary
    4. Workshop
  22. Using Connection Pooling
    1. What Is Connection Pooling?
    2. OLE DB .NET Data Provider
    3. Summary
    4. Q&A
    5. Workshop
  23. Working with Transactions
    1. What Is a Transaction?
    2. Transactions and ADO.NET
    3. Transactions with Stored Procedures
    4. Summary
    5. Q&A
    6. Workshop
  24. Using Automatically Generated Commands
    1. Automatically Generated Commands
    2. Using the CommandBuilder
    3. Summary
    4. Q&A
    5. Workshop
  25. Working with Typed DataSets
    1. The Typed DataSet
    2. Generating a Typed DataSet
    3. Typed DataSets in Visual Studio .NET
    4. Summary
    5. Q&A
    6. Workshop
  26. Optimizing Data Access Using Tiered Development
    1. What Is Tiered Development?
    2. Implementing Tiered Development
    3. Creating Your Own Assembly
    4. Summary
    5. Q&A
    6. Workshop
  27. Modifying Data in an N-Tier Application
    1. Updating Product Data
    2. Adding Product Data
    3. Summary
    4. Q&A
    5. Workshop
  28. Optimizing Data Access
    1. Optimizing ADO.NET Code
    2. ASP.NET Tracing
    3. Improving Your Queries with the SQL Query Analyzer
    4. Simulating Application Traffic
    5. Data Caching
    6. Summary
    7. Q&A
    8. Workshop
  29. Transmitting DataSets Using Web Services
    1. Sending a DataSet Using Web Services
    2. Consuming a DataSet from a Web Service
    3. Summary
    4. Q&A
    5. Workshop
    1. Hour 1
    2. Hour 2
    3. Hour 3
    4. Hour 4
    5. Hour 5
    6. Hour 6
    7. Hour 7
    8. Hour 8
    9. Hour 9
    10. Hour 10
    11. Hour 11
    12. Hour 12
    13. Hour 13
    14. Hour 14
    15. Hour 15
    16. Hour 16
    17. Hour 17
    18. Hour 18
    19. Hour 19
    20. Hour 20
    21. Hour 21
    22. Hour 22
    23. Hour 23
    24. Hour 24
  30. Index

Product information

  • Title: Sams Teach Yourself ADO.NET in 24 Hours
  • Author(s): Jason Lefebvre, Paul Bertucci
  • Release date: May 2002
  • Publisher(s): Sams
  • ISBN: 0672323834