Contents. Chapter 1 Introducing ADO.NET...1. Acknowledgments...xiii. About the Authors...xv. Introduction...xix

Similar documents
ADO.NET Using Visual Basic 2005 Table of Contents

Mobile MOUSe ADO.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE

An Introduction to ADO.Net

About the Authors Introduction p. 1 Exploring Application Architectures p. 9 Introduction p. 9 Choosing the "Right" Architecture p.

ADO.NET.NET Data Access and Manipulation Mechanism. Nikita Gandotra Assistant Professor, Department of Computer Science & IT

Mobile MOUSe ASP.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE

ADO.NET from 3,048 meters

overview of, ASPNET User, Auto mode, 348 AutoIncrement property, 202 AutoNumber fields, 100 AVG function, 71

A201 Object Oriented Programming with Visual Basic.Net

B Nagaraju

PLATFORM TECHNOLOGY UNIT-4

Chapter 3. Windows Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

ASP.NET Web Forms Programming Using Visual Basic.NET

Introducing.NET Data Management

ADO.NET 2.0. database programming with

C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies. Objectives (1 of 2)

Working with the Biblio Sample Database

Windows Database Applications

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1

SECURED PROGRAMMING IN.NET DETAILED TRAINING CONTENT INDUSTRIAL TRAINING PROGRAM ( )

BUILDING APPLICATIONS USING C# AND.NET FRAMEWORK (OBJECT-ORIENTED PROGRAMMING, X428.6)

Building Database Applications with ADO.NET

[ Team LiB ] Publisher: O'Reilly Pub Date: September 2003 ISBN: Pages: 624

Copy Datatable Schema To Another Datatable Vb.net

Data Access Standards. ODBC, OLE DB, and ADO Introduction. History of ODBC. History of ODBC 4/24/2016

.Net Interview Questions

Saikat Banerjee Page 1

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

C# Syllabus. MS.NET Framework Introduction

Introduction. Part I: Introduction to SQL Server 2005 XML 1. Chapter 1: What s New in Version 2.0 of the.net Framework for XML 3

Mastering VB.NET using Visual Studio 2010 Course Length: 5 days Price: $2,500

Learning C# 3.0. Jesse Liberty and Brian MacDonald O'REILLY. Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo

Building Datacentric Applications

10267 Introduction to Web Development with Microsoft Visual Studio 2010

Practical Database Programming with Visual Basic.NET

Lecture 10: Database. Lisa (Ling) Liu

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 14 Database Connectivity and Web Technologies

A Programmer s Guide to ADO.NET in C# MAHESH CHAND

It is the primary data access model for.net applications Next version of ADO Can be divided into two parts. Resides in System.

DOT NET Syllabus (6 Months)

Querying Microsoft SQL Server (461)

Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#)

Contents I Introduction 1 Introduction to PL/SQL iii

SAULT COLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO COURSE OUTLINE. Visual Basic - Prototyping CSD301

Visual Basic.NET Complete Sybex, Inc.

M Introduction to C# Programming with Microsoft.NET - 5 Day Course

Program Contents: DOTNET TRAINING IN CHENNAI

Microsoft. Microsoft Visual C# Step by Step. John Sharp

2609 : Introduction to C# Programming with Microsoft.NET

2.1 Read and Write XML Data. 2.2 Distinguish Between DataSet and DataReader Objects. 2.3 Call a Service from a Web Page

DE Introduction to Web Development with Microsoft Visual Studio 2010

SERVICE-ORIENTED COMPUTING

OUTLINE DELPHI 2005 FOR.NET JUMP START

ADO.NET Overview. Connected Architecture. SqlConnection, SqlCommand, DataReader class. Disconnected Architecture

Pro ODP.NET for Oracle. Database 11 g. Edmund Zehoo. Apress

Introduction to Web Development with Microsoft Visual Studio 2010

.NET and DB2 united with IBM DB2.NET Data Provider Objectives :.NET ADO.NET DB2 and ADO.NET DB2 - ADO.NET applications

III BSc(Information Technology)[ ] Batch Semester VI CORE: FRAMEWORK TECHNOLOGY-612B Multiple Choice Questions.

Saikat Banerjee Page 1

Database Programming with Visual Basic.NET, Second Edition CARSTEN THOMSEN

EXAM Web Development Fundamentals. Buy Full Product.

How to use data sources with databases (part 1)

.NET FRAMEWORK. Visual C#.Net

CMPT 354 Database Systems I

5132_index Page 503 Thursday, April 25, :08 PM. Index

> ADO.NET: ActiveX Data Objects for.net, set of components used to interact with any DB/ XML docs

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p.

OVERVIEW ENVIRONMENT PROGRAM STRUCTURE BASIC SYNTAX DATA TYPES TYPE CONVERSION

DOT NET COURSE BROCHURE

Accessing Databases 7/6/2017 EC512 1

Oracle Database 12c: Program with PL/SQL Duration: 5 Days Method: Instructor-Led

iseries Access in the.net World

Wildermuth_Index.qxd 10/9/02 3:22 PM Page 347 { Kirby Mountain Composition & Graphics } Index

Chapter 8. ADO.NET Data Containers... 1 Data Adapters... 1 In-Memory Data Container Objects Conclusion... 35

HCIM SUMMER WORKSHOP Introduction to C#

ADO.NET for Beginners

COURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.)

DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1

CHAPTER 1: INTRODUCTION TO THE IDE 3

VB.NET Web : Phone : INTRODUCTION TO NET FRAME WORK

6 Microsoft.Data.Odbc

EVALUATION COPY. Unauthorized reproduction or distribution is prohibited. Table of Contents (Detailed)

6232B: Implementing a Microsoft SQL Server 2008 R2 Database

B. V. Patel Institute of Business Management, Computer and Information Technology

CSC 330 Object-Oriented

SQL Server Interview Questions

Oracle Database: Program with PL/SQL

Oracle Database: Program with PL/SQL Ed 2

Integration Services. Creating an ETL Solution with SSIS. Module Overview. Introduction to ETL with SSIS Implementing Data Flow

Introduction to Web Development with Microsoft Visual Studio 2010

Oracle PLSQL Training Syllabus

PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore

Oracle Database 12c R2: Program with PL/SQL Ed 2 Duration: 5 Days

Conditionally control code flow (loops, control structures). Create stored procedures and functions.

M4.1-R4: APPLICATION OF.NET TECHNOLOGY

PROGRAMMING WITH THE MICROSOFT.NET FRAMEWORK USING MICROSOFT VISUAL STUDIO 2005 Course No. MS4995A 5 Day PREREQUISITES COURSE OUTLINE

B.E /B.TECH DEGREE EXAMINATIONS,

ADO.NET in Visual Basic

Transcription:

Acknowledgments...xiii About the Authors...xv Introduction...xix Chapter 1 Introducing ADO.NET...1 How We Got Here...2 What Do These Changes Mean?...5 ADO.NET A New Beginning...7 Comparing ADOc and ADO.NET...8 Understanding ADO.NET Infrastructure...9 Understanding ADO.NET s Distributed Architecture...10 A Brief Look at XML...11 ADO.NET The Fundamentals...12 ADO.NET.NET Data Providers...15 Leveraging Existing COM-based ADO Code...17 Creating DataSets from ADOc Recordset Objects...19 How COM Interop Affects.NET Applications...19 ADO.NET and Disconnected Data Structures...20 The System.Data Namespace...21 The ADO.NET DataSet Object...22 Descending the System.Data Namespace Tree...26 Instantiating System.Data Objects...30 Introducing the ADO.NET DataAdapter...31 ADO.NET s Low-Level Data Stream...36 vii

Chapter 2 ADO.NET Getting Connected...39 ADO.NET.NET Data Providers...40 Choosing the Right Provider...41 Creating ADO.NET Connection Objects...42 Using Constructors in Declarations...43 Building an ADO.NET ConnectionString...44 Connecting via the SqlClient.NET Data Provider...51 Introducing System.Data.SQLClient...51 Examining the Connection Object Properties...53 Examining Connection Object Methods...55 Sinking Connection Object Events...56 Managing Transactions...59 Connecting with the Odbc.NET Data Provider...59 Using the Odbc.NET Data Provider...60 Managing the Odbc.Connection Object...61 ODBC Connection Strings...64 Opening ADO.NET Connections in Code...65 Using the IDE to Get Connected...66 Adding Connections...66 Closing Connections...68 Managing the ADO.NET Garbage Collector...68 Connection Information and Security...69 ADO.NET Connection Pooling...71 OleDb and Odbc Connection Pooling...75 Debugging the Connection Pool...75 COM-based ADO as a.net Data Provider...75 Instantiating Your ADOc Namespace...76 Chapter 3 ADO.NET Command Strategies...79 Understanding ADO.NET Commands...79 Introducing ADO.NET Parameter Queries...82 Executing Ad Hoc Queries Using ADO.NET...84 Constructing SQL for your Query...85 Creating a DataSet with the IDE...98 Using Drag-and-Drop with the IDE...102 Managing Parameter Queries...111 Managing Multiple-Table Queries...116 Managing Stored Procedure Queries...121 Managing Multiple-Resultset Queries...129 Exploring the Command Execute Methods...133 Binding to Resultset Columns...136 viii

Chapter 4ADO.NET DataReader Strategies...141 Comparing ADOc with ADO.NET...142 Understanding the DataReader...144 Using the DataReader Get Methods to Retrieve Data...151 Using GetValues to Fetch a Row...154 Cleaning Up After Your DataReader...155 Chapter 5 Using the DataTable and DataSet...157 Understanding the DataSet and DataTable Structure...159 Typed Versus Untyped DataSets...161 Importing ADOc Recordsets...168 Comparing ADOc Recordsets and DataTable Objects...169 Building DataTables...172 Building DataTables with the Constructor...173 Building DataTables Using the DataAdapter Fill Method...173 Building DataTable Objects Within a DataSet...177 Using FillSchema to Retrieve DDL...180 Accessing DataTable Data...181 Accessing the DataColumnCollection (Columns)...182 Understanding the DataRow Object...187 Accessing the DataRowCollection (Rows)...187 Testing for Results...191 Accessing DataSet Data...194 Positioning the Current Row Pointer...195 Binding to DataSets...196 Chapter 6 Filtering, Sorting, and Finding...197 Filtering and Sorting with the Select Method...198 Sorting with the Select Method...199 Filtering on RowState and Version...205 Filtering and Sorting with the DataView Object...205 Setting DataView Filter Properties...206 Creating DataView Objects with Visual Studio...210 Updating a DataView...210 Working with the DataViewManager...211 The DefaultViewManager Property...212 Using the Find Methods...212 The Rows Collection Find Method...213 The DataView Object s Find Method...216 The Rows Collection Contains Method...219 ix

Chapter 7 ADO.NET Update Strategies...221 Changing Data The Fundamentals...223 Addressing the Value Property with Untyped Datasets...223 Addressing the Value Property with Typed Datasets...224 Creating New DataRows...224 Deleting DataSet Rows...226 Undoing a Delete Operation...227 Postponing Constraint Enforcement...228 Using BeginEdit...228 Data Validation...229 Checking RowState...233 Update Strategies...238 Creating Updatable DataSets...239 Using the CommandBuilder Class...240 Using Visual Studio to Generate Action Queries...251 Reviewing the Generated Stored Procedures...251 Reviewing the Generated Code...254 Retrieving Autonumber, Identity, or GUIDs...258 Understanding the Update Methods...262 Update Performance...264 Another Approach to Bulk Inserts: Use XML...265 Updating the Authors Table An Example...266 Working with an Updatable DataGrid Control...268 Showing the Available Data Versions...268 Showing the Row Counts...270 Using GetChanges to Manage Modified Rows...272 Update Exception Handling Strategies...273 Using the ContinueAfterError Property...274 What to Do When an Update Fails...276 Handling Update Method Exceptions...277 Coding the Update DBConcurrencyException Trap...279 Executing Ad Hoc Queries to Perform Updates...280 Merging and Transporting Data...281 Chapter 8 ADO.NET Constraint Strategies...283 x Understanding.NET Constraints...283 How ADO.NET Implements Constraints...285 Managing the Constraints Collection...286 Implementing Unique Constraints...287 Implementing Foreign Key Constraints...289 Understanding Parent/Child Primary Key/Foreign Key Relationships...292 Using the FillSchema Method...294 Creating DataRelation Objects...295

Chapter 9 ADO.NET Exception Management Strategies..301 Structured Exception Handling...302 Understanding try/catch...303 try/catch Syntax...303 Standard Exceptions...303 Variable Scope in try/catch Blocks...305 Exceptions That Fire Outside of try/catch Scope...305 Nesting Exception Handlers...305 Trapping Specific vs. General Exceptions...306 The System.Data Exceptions...306 The SqlException Class...308 The SqlError Class...310 The OleDbException Class...310 Displaying the Error Message...311 Chapter 10 ADO.NET and XML...313 XML Support in ADO.NET...314 Standardizing on XML Formats...315 Understanding XML and DataSet Objects...316 Importing DataSet Data from an XML Document...316 What Are DiffGrams?...319 Merging XML Data with Your DataSet...321 Fetching and Saving DataSet Objects as XML...321 Loading Schema from XML...324 Persisting XML Schema...325 Creating a Web Service as an XML Data Source...326 Passing an Updated DataSet Back to a Web Service...336 Creating Custom Exception Handlers...341 ADO.NET and SOAP...342 Appendix Working with the Biblio Sample Database...343 Index...345 xi

http://www.springer.com/978-1-59059-012-6