ADO vs ADO.NET ADOADO.NET Client/server coupledDisconnected collection of data from data server Uses RECORDSET object (contains one table) Uses DATASET.

Slides:



Advertisements
Similar presentations
17. Data Access ADO.Net Architecture New Features of ADO.NET
Advertisements

Database Connections with ASP.Net
ADO.NET: Working in Disconnected Environment Sergey Baidachni MCT, MCSD, MCDBA.
Data Base. Objective Become familiar with database terminology. Create a project to display data for a single database table. Use a DataGrid control.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Chapter 10 ADO. What is ADO? ADO is a Microsoft technology ADO stands for ActiveX Data Objects ADO is a programming interface to access data in a database.
Introduction to Database Processing with ADO.NET.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Object-Oriented Application Development Using VB.NET 1 Chapter 13 Introduction to Data Access Classes and Persistence.
1 Pertemuan 09 Database Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Chapter 12 Database Connectivity with ASP.NET JavaScript, Third Edition.
Objective In this session we will discuss about : What is ADO. NET ?
Overview of Database Access in.Net Josh Bowen CIS 764-FS2008.
Chapter 8 Binding Data to Web Controls. ASP.NET 2.0, Third Edition2.
ADO.NET. ADO.NET deals with accessing and manipulating databases.it comprises of many namespaces and classes to do so. ADO.NET provides access to datasources.
ADO.NET – part II August 2004 [ Marmagna Desai]. CONTENTS ADO vs ADO.NET ADO.NET – Managed providers Connecting to Database SqlConnection Selecting Database.
Introduction to ADO.Net and Visual Studio Database Tools ISYS 512.
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
ADO.NET. ADO.NET deals with accessing and manipulating databases.it comprises of many namespaces and classes to do so. ADO.NET provides access to datasources.
Visual Studio ®.NET Data with XML Carlotta Eaton ( Associate Professor of IST New River Community College Slides by Microsoft Modified.
ADO.NET A2 Teacher Up skilling LECTURE 3. What’s to come today? ADO.NET What is ADO.NET? ADO.NET Objects SqlConnection SqlCommand SqlDataReader DataSet.
Overview of ADO.NET with the.NET Framework Scalable Development, Inc. Building systems today that perform tomorrow.
Overview of Data Access MacDonald Ch. 15 MIS 324 Professor Sandvig.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Databases and Data Access  Introduction to ADO.NET  ADO.NET objects  ADP.NET namespaces  Differences between ADO and ADO.NET.
.NET Data Access and Manipulation ADO.NET. Overview What is ADO.NET? Disconnected vs. connected data access models ADO.NET Architecture ADO.NET Core Objects.
1 Introduction to ADO.NET Microsoft ADO.NET 2.0 Step by Step Rebecca M Riordan Microsoft Press, 2006.
Moving from Microsoft ® ADO 2.X To ADO.NET Jackie Goldstein Renaissance Computer Systems Ltd. MSDN Regional Director, Israel Prerequisites.
Copyright ©2004 Virtusa Corporation | CONFIDENTIAL ADO.Net Basics Ruwan Wijesinghe Trainer.
Objectives In this lesson, you will learn to: *Identify the need for ADO.NET *Identify the features of ADO.NET *Identify the components of the ADO.NET.
ASP.NET Rina Zviel-Girshin Lecture 5
Module 9: Accessing Relational Data Using Microsoft Visual Studio.NET.
Session 8: ADO.NET. Overview Overview of ADO.NET What is ADO.NET? Using Namespaces The ADO.NET Object Model What is a DataSet? Accessing Data with ADO.NET.
Module 7: Accessing Data by Using ADO.NET
What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Introduction to ADO.NET ADO.NET - Lesson 01  Training time: 10 minutes  Author:
Windows Forms in Visual Studio 2005 Mike Pelton Systems Engineer Microsoft Ltd
Presented by Joseph J. Sarna Jr. JJS Systems, LLC
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
An Introduction to ADO.Net Marmagna Desai.NET Seminar, Fall-2003.
Accessing Data with Microsoft Visual C# Applications.
Module 3: Working with Local Data. Overview Using DataSets Using XML Using SQL Server CE.
HNDIT Rapid Application Development
Module 4 Introduction ADO.NET.
Active Data Objects Using.Net ADO.Net Farooq Ahmed Amna Umber Summayya Shehzad.
Module 2: Using ADO.NET to Access Data. Overview ADO.NET Architecture Creating an Application That Uses ADO.NET to Access Data Changing Database Records.
Data Access. ADO.NET ADO.NET is the primary library for building database solutions within the.NET Framework. ADO.NET does not replace ADO. ADO and OLEDB.
ADO .NET from. ADO .NET from “ADO .Net” Evolution/History of ADO.NET MICROSOFT .NET “ADO .Net” Evolution/History of ADO.NET History: Most applications.
.NET Data Access and Manipulation
C# 1 CSC 298 ADO.NET. C# 2 ADO.NET  A data access technology that maps very well to the world of the web (disconnected architecture)  data is retrieved.
Integrating Data Lesson 6.
ASP.NET Programming with C# and SQL Server First Edition
Data Access with ADO.NET
Introduction to ADO.NET
Introduction to Database Processing with ADO.NET
Introduction to Database Processing with ADO.NET
ADO.NET Framework.
IS444: Modern tools for applications development
IS444: Modern tools for applications development
ADO.NET Accessing Databases in VS.NET
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Database Objects 1/12/2019 See scm-intranet.
Опит в използването на ODP.NET с Oracle 9i
Chapter 10 ADO.
Database Applications
.NET Framework Data Providers
Introduction to Database Programming through ADO. NET
Introduction to ADO.Net and Visual Studio Database Tools.
Presentation transcript:

ADO vs ADO.NET ADOADO.NET Client/server coupledDisconnected collection of data from data server Uses RECORDSET object (contains one table) Uses DATASET object (contains one or more DATATABLE objects) Uses CONNECTION object and RECORDSET object with OLEDB Uses DATASETCOMMAND object with OLEDB Uses COM to marshal RECORDSET Transfers DATASET object via XML. No data conversions required

ADO versus ADO.NET (continued) ADOADO.NET XML awareXML is the native transfer medium for the objects Firewalls block system-level COM marshalling XML flows through the firewall via HTTP Coupled to the language used, various implementation Managed code library – Uses Common Language Runtime, therefore, language agnostic

Agenda ADO versus ADO.NET ADO.NET Architecture Connection Object Command Object DataReader Object DataAdapter Object DataSet Object DataView Object Use ADO.NET to access data in an application

ADO.NET Architecture Diagram

ADO.NET Namespaces System.dataCore namespace, defines types that represent data System.Data.CommonTypes shared between managed providers System.Data.OleDbTypes that allow connection to OLE DB compliant data sources System.Data.SqlClientTypes that are optimized to connect to Microsoft® SQL Server System.Data.SqlTypesNative data types in Microsoft® SQL Server

Importing the ADO.NET Namespaces Needed to build a data access application For OLE DB: Imports System.Data Imports System.Data.OleDB For SQL Server: Imports System.Data Imports System.Data.SQLClient

Agenda ADO versus ADO.NET ADO.NET Architecture Connection Object Command Object DataReader Object DataAdapter Object DataSet Object DataView Object Use ADO.NET to access data in an application

Connection object Connects to databases. Two provider-specific classes oSqlConnection oOleDbConnection. Connections can be opened in two ways: oExplicitly by calling the Open method on the connection oImplicitly when using a DataAdapter. Connections handle transactions

Agenda ADO versus ADO.NET ADO.NET Architecture Connection Object Command Object DataReader Object DataAdapter Object DataSet Object DataView Object Use ADO.NET to access data in an application

Command Object Information submitted to a database as a query via a Connection object Two provider-specific classes oSqlCommand oOleDbCommand Input and output parameters are supported, along with return values as part of the command syntax Results are returned in the form of streams. Accessed by: oDataReader object oDataSet object via a DataAdapter

Agenda ADO versus ADO.NET ADO.NET Architecture Connection Object Command Object DataReader Object DataAdapter Object DataSet Object DataView Object Use ADO.NET to access data in an application

DataReader Object Provides methods and properties that deliver a forward-only stream of data rows from a data source When a DataReader is used, parts of the ADO.NET model are cut out, providing faster and more efficient data access

Agenda ADO versus ADO.NET ADO.NET Architecture Connection Object Command Object DataReader Object DataAdapter Object DataSet Object DataView Object Use ADO.NET to access data in an application

DataAdapter Object Provides a set of methods and properties to retrieve and save data between a DataSet and its source data store Allows the use of stored procedures Connects to the database to fill the DataSet and also update the database

Agenda ADO versus ADO.NET ADO.NET Architecture Connection Object Command Object DataReader Object DataAdapter Object DataSet Object DataView Object Use ADO.NET to access data in an application

DataSet Object Replaces the ADO Recordset Represents a cache of data that contains tables, columns, relationships, and constraints, just like a database Regardless of where the source data comes from, data can all be placed into DataSet objects Tracks changes that are made to the data it holds before updating the source data DataSet are also fully XML-featured Works with all current models of data storage: flat, relational, and hierarchical

Agenda ADO versus ADO.NET ADO.NET Architecture Connection Object Command Object DataReader Object DataAdapter Object DataSet Object DataView Object Use ADO.NET to access data in an application

DataView Object Provides methods and properties that enable UI objects such as a DataGrid to bind to a DataSet A view of the data contained in the DataSet Only used in conjunction with a DataSet

Agenda ADO versus ADO.NET ADO.NET Architecture Connection Object Command Object DataReader Object DataAdapter Object DataSet Object DataView Object Use ADO.NET to access data in an application

Create Data Access Windows Form

Create Multiple Table DataSet Example

Summary ADO versus ADO.NET ADO.NET Architecture Connection Object Command Object DataReader Object DataAdapter Object DataSet Object DataView Object Use ADO.NET to access data in an application