Please consider the latest edition.
-
Chapter 1 Connecting to Data
-
Introduction
-
Connecting to an ODBC Data Source
-
Connecting to a Microsoft Excel Workbook
-
Connecting to a Password-Protected Access Database
-
Connecting to a Secured Access Database
-
Connecting to an Access Databasefrom ASP.NET
-
Using an IP Address to Connect to SQL Server
-
Connecting to a Named Instance of SQL Server or Microsoft Data Engine (MSDE)
-
Connecting to SQL Server Using Integrated Security from ASP.NET
-
Connecting to an Oracle Database
-
Connecting to Exchange or Outlook
-
Writing Database-Independent Code
-
Storing Connection Strings
-
Using the Data Link Properties Dialog Box
-
Monitoring Connections
-
Taking Advantage of Connection Pooling
-
Setting Connection Pooling Options
-
Using Transactions with Pooled Connections
-
Changing the Database for an Open Connection
-
Connecting to a Text File
-
-
Chapter 2 Retrieving and Managing Data
-
Introduction
-
Retrieving Hierarchical Data into a DataSet
-
Building a DataSet Programmatically
-
Creating a Strongly Typed DataSet
-
Processing a Batch SQL Statement
-
Using a Web Service as a Data Source
-
Accessing Deleted Rows in a DataTable
-
Counting Records in a DataReader
-
Mapping .NET Data Provider Data Types to .NET Framework Data Types
-
Returning an Output Parameter Using a DataReader
-
Raising and Handling Stored Procedure Errors
-
Testing for No Records
-
Retrieving Stored Procedure Return Values Using a DataReader
-
Executing SQL Server User-Defined Scalar Functions
-
Passing Null Values to Parameters
-
Retrieving Update Errors
-
Mapping Table and Column Names Between the Data Source and DataSet
-
Displaying Columns from a Related DataTable
-
Controlling the Names Used in a Strongly Typed DataSet
-
Replacing Null Values in a Strongly Typed DataSet
-
Retrieving Data from an Oracle Package
-
Using Parameterized SQL Statements
-
Querying Data Asynchronously with Message Queuing
-
-
Chapter 3 Searching and Analyzing Data
-
Introduction
-
Filtering and Sorting Data
-
Using Expression Columns to Display Calculated Values
-
Determining the Differences in Data Between Two DataSet Objects
-
Navigating Between Parent and Child Records Using a DataRelation
-
Localizing Client-Side Data in a Web Forms Application
-
Combining Data in Tables from Heterogeneous Data Sources
-
Using Expression Columns to Display Aggregate Values
-
Finding Rows in a DataTable
-
Finding Rows in a DataView
-
Selecting the Top n Rows in a DataTable
-
Getting Typed DataRows from DataViews
-
Filtering for Null Values
-
Executing Queries That Use COMPUTE BY
-
Using the Shape Language to Retrieve Hierarchical Data
-
-
Chapter 4 Adding and Modifying Data
-
Introduction
-
Using Auto-Incrementing Columns Without Causing Conflicts
-
Getting an Identity Column Value from SQL Server
-
Getting an AutoNumber Value from Microsoft Access
-
Getting a Sequence Value from Oracle
-
Adding Parent/Child Rows with Auto-Incrementing Keys
-
Adding Records with a GUID Primary Key
-
Updating a Data Source with Data from a Different Data Source
-
Updating a Primary Key Value
-
Getting Stored Procedure Parameter Information at Runtime
-
Updating a DataSet with a Many-to-Many Relationship
-
Updating Server Data Using a Web Service
-
Updating Server Data Using .NET Remoting
-
Updating Data Asynchronously Using Message Queuing
-
Overcoming Keyword Conflicts When Using CommandBuilders
-
-
Chapter 5 Copying and Transferring Data
-
Introduction
-
Copying Rows from One DataTable to Another
-
Copying Tables from One DataSet to Another
-
Converting a DataReader to a DataSet
-
Serializing Data
-
Deserializing Data
-
Merging Data
-
Transmitting a DataSet Securely
-
Transferring Login Credentials Securely
-
Loading an ADO Recordset into a DataSet
-
Converting a DataSet to an ADO Recordset
-
Exporting the Results of a Query as a String
-
Exporting the Results of a Query to an Array
-
-
Chapter 6 Maintaining Database Integrity
-
Introduction
-
Creating a Class That Participates in an Automatic Transaction
-
Using Manual Transactions
-
Nesting Manual Transactions with the SQL Server .NET Data Provider
-
Using ADO.NET and SQL Server DBMS Transactions Together
-
Using a Transaction with a DataAdapter
-
Avoiding Referential Integrity Problems When Updating the Data Source
-
Enforcing Business Rules with Column Expressions
-
Creating Constraints, PrimaryKeys, Relationships Based on Multiple Columns
-
Retrieving Constraints from a SQL Server Database
-
Checking for Concurrency Violations
-
Resolving Data Conflicts
-
Using Transaction Isolation Levels to Protect Data
-
Implementing Pessimistic Concurrency Without Using Database Locks
-
Specifying Locking Hints in a SQL Server Database
-
-
Chapter 7 Binding Data to .NET User Interfaces
-
Introduction
-
Binding Simple Data to Web Forms Controls
-
Binding Complex Data to Web Forms Controls
-
Binding Data to a Web Forms DataList
-
Binding Data to a Web Forms DataGrid
-
Editing and Updating Data in a Web Forms DataGrid
-
Synchronizing Master-Detail Web Forms DataGrids
-
Displaying an Image from a Database in a Web Forms Control
-
Displaying an Image from a Database in a Windows Forms Control
-
Binding a Group of Radio Buttons in a Windows Form
-
Creating Custom Columns in a Windows Forms DataGrid
-
Populating a Windows Forms ComboBox
-
Binding a Windows DataGrid to Master-Detail Data
-
Loading a Windows PictureBox with Images Stored by Access as OLE Objects
-
Using a DataView to Control Edits, Deletions, or Additions in Windows Forms
-
Adding Search Capabilities to Windows Forms
-
Dynamically Creating Crystal Reports
-
Using ADO.NET Design-Time Features in Classes Without a GUI
-
-
Chapter 8 Working with XML
-
Introduction
-
Using XSD Schema Files to Load and Save a DataSet Structure
-
Saving and Loading a DataSet from XML
-
Synchronizing a DataSet with an XML Document
-
Storing XML to a Database Field
-
Reading XML Data Directly from SQL Server
-
Using XPath to Query Data in a DataSet
-
Transforming a DataSet Using XSLT
-
Creating an XML File That Shows Changes Made to a DataSet
-
Formatting Column Values When Outputting Data as XML
-
Filling a DataSet Using an XML Template Query
-
Using a Single Stored Procedure to Update Multiple Changes to a SQL Server Database
-
-
Chapter 9 Optimizing .NET Data Access
-
Introduction
-
Filling a DataSet Asynchronously
-
Canceling an Asynchronous Query
-
Caching Data
-
Improving Paging Performance
-
Performing a Bulk Insert with SQL Server
-
Improving DataReader Performance with Typed Accessors
-
Improving DataReader Performance with Column Ordinals
-
Debugging a SQL Server Stored Procedure
-
Improving Performance While Filling a DataSet
-
Retrieving a Single Value from a Query
-
Reading and Writing Binary Data with SQL Server
-
Reading and Writing Binary Data with Oracle
-
Performing Batch Updates with a DataAdapter
-
Refreshing a DataSet Automatically Using Extended Properties
-
-
Chapter 10 Enumerating and Maintaining Database Objects
-
Introduction
-
Listing SQL Servers
-
Retrieving Database Schema Information from SQL Server
-
Retrieving Column Default Values from SQL Server
-
Determining the Length of Columns in a SQL Server Table
-
Counting Records
-
Creating a New Access Database
-
Creating a New SQL Server Database
-
Adding Tables to a Database
-
Getting a SQL Server Query Plan
-
Compacting an Access Database
-
Creating DataSet Relationships from SQL Server Relationships
-
Getting SQL Server Column Metadata Without Returning Data
-
Listing Installed OLE DB Providers
-
Listing Tables in an Access Database
-
Creating a Table in the Database from a DataTable Schema
-
Listing Installed ODBC Drivers
-
-
Appendix A Converting from C# to VB Syntax
-
General Considerations
-
Classes
-
Structures
-
Interfaces
-
Class, Structure, and Interface Members
-
Delegates
-
Enumerations
-
-
Colophon
- Title:
- ADO.NET Cookbook
- By:
- Bill Hamilton
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- September 2003
- Pages:
- 624
- Print ISBN:
- 978-0-596-00439-2
- | ISBN 10:
- 0-596-00439-7
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of ADO.NET Cookbook is a white spoonbill (Platelea leucorodia), also called the common or Eurasian white spoonbill, named for its large, spatulate bill. Spoonbills feed by wading through the shallow waters of their marshy habitats, moving their partly opened bills from side to side to filter out mud and water. When the sensitive nerve endings inside their bills detect an edible morsel, they snap them shut. A spoonbill's typical diet includes insects, larvae, small crustaceans, and tiny fish.
Mature white spoonbills are about 85 centimeters long from the tips of their tails to the tips of their bills, and their wingspans average 125 centimeters. As the name suggests, white spoonbill feathers are a creamy white. During breeding season, however, adults develop yellow patches on their breasts, faces, and bills.
White spoonbills are found in northeast Africa and much of Europe and Asia. They nest in trees and reed beds, typically in large colonies and sometimes with other bird species in the Threskiornithidae family, such as herons and storks. Males gather nesting materials, and females weave these sticks and reeds into shallow, bowl-shaped nests. Females generally lay a clutch of 3 to 4 eggs per year and share incubation duties with their mates.
Although the white spoonbill is an endangered species, conservation efforts have led to a slow increase in population in some areas, particularly in northwestern Europe. Loss of breeding sites due to land clearance and pesticide use are the main threats to the white spoonbill's survival. Matt Hutchinson was the production editor for ADO.NET Cookbook. Argosy Publishing, Inc. provided production services. Mary Brady, Sarah Sherman, and Claire Cloutier provided quality control.
Emma Colby designed the cover of this book, based on a series design by Edie Freedman. The cover image is from Bewick's British Birds. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
David Futato designed the interior layout. This book was converted by Julie Hawks to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Genevieve d'Entremont.
