Presented by Joseph J. Sarna Jr. JJS Systems, LLC

Slides:



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

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.
1 Pertemuan 09 Database Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
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.
Programming in ADO.NET: Data-Centric Applications and ADO.NET Original copyright by Microsoft, 2002, with minor modifications by Dan Eaves, 2005.
Objective In this session we will discuss about : What is ADO. NET ?
Overview of ADO.NET Chapter 1 ADO.NET 4.0 Development.
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.
Programming with Visual Basic.NET An Object-Oriented Approach  Chapter 8 Introduction to Database Processing.
ODBC, OLE DB, and ADO Introduction Dr. Ron Eaglin.
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.
Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.
Overview of Data Access MacDonald Ch. 15 MIS 324 Professor Sandvig.
A Simple Introduction. What is ADO.net? First the word ADO stands for ActiveX Data Objects And it is an integral part of.Net Framework of Microsoft hence.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Needs for Accessing Database To make your web site more dynamic and maintainable, you can display information on your web pages that are retrieved from.
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.
Chapter 3 Introduction to ADO.NET 3.1 The ADO and ADO.NET ActiveX Data Object (ADO) is developed based on Object Linking and Embedding (OLE) and Component.
Moving from Microsoft ® ADO 2.X To ADO.NET Jackie Goldstein Renaissance Computer Systems Ltd. MSDN Regional Director, Israel Prerequisites.
 It is the primary data access model for.Net applications  Next version of ADO  Can be divided into two parts ◦ Providers ◦ DataSets  Resides in System.Data.
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.
10/26/20151 Chapter 3 Introduction to ADO.NET In this chapter, you will: Learn the basic classes in ADO.NET and its architecture Learn the different 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
Christopher M. Pascucci.NET Programming: Databases & ADO.NET.
© 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:
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.
 It is the primary data access model for.Net applications  Next version of ADO  Can be divided into two parts ◦ Providers ◦ DataSets  Resides in System.Data.
Why ADO.NET Not your father’s Data Access.
The Problems HTTP is disconnected So many database vendors Create a simple consistent versatile interface on the data Look at ADO.NET classes OleDb SQL.
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
Database Connectivity with ASP.NET. 2 Introduction Web pages commonly used to: –Gather information stored on a Web server database Most server-side scripting.
ADO.NET FUNDAMENTALS BEGINNING ASP.NET 3.5 IN C#.
Module 4 Introduction ADO.NET.
C# .NET Software Development
Active Data Objects Using.Net ADO.Net Farooq Ahmed Amna Umber Summayya Shehzad.
Module 5 Data Classes DataView – DataGridView Control 1.
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 and Stored Procedures
ADO.NET Framework.
Lecture 6 VB.Net SQL Server.
ADO.NET Accessing Databases in VS.NET
Tonga Institute of Higher Education
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Database Objects 1/12/2019 See scm-intranet.
Chapter 10 ADO.
Introduction to Database Programming through ADO. NET
Presentation transcript:

Presented by Joseph J. Sarna Jr. JJS Systems, LLC Microsoft® ADO.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC

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 versus ADO.NET Feature ADO ADO.NET Primary Aim Client/server coupled Disconnected collection of data from data server Form of data in memory Uses RECORDSET object (contains one table) Uses DATASET object (contains one or more DATATABLE objects) Disconnected access Uses CONNECTION object and RECORDSET object with OLEDB Uses DATASETCOMMAND object with OLEDB Disconnected access across multi-tiers Uses COM to marshal RECORDSET Transfers DATASET object via XML. No data conversions required

ADO versus ADO.NET (continued) Feature ADO ADO.NET XML capabilities XML aware XML is the native transfer medium for the objects Firewalls Firewalls block system-level COM marshalling XML flows through the firewall via HTTP Code 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.data Core namespace, defines types that represent data System.Data.Common Types shared between managed providers System.Data.OleDb Types that allow connection to OLE DB compliant data sources System.Data.SqlClient Types that are optimized to connect to Microsoft® SQL Server System.Data.SqlTypes Native 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.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 SqlConnection OleDbConnection. Connections can be opened in two ways: Explicitly by calling the Open method on the connection Implicitly 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 SqlCommand OleDbCommand 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: DataReader object DataSet 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

Create DataReader Example

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

Allows the use of stored procedures 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

New Hampshire Access/Visual Basic User Group Meets 4th Wednesday of each month Meetings held at Southern New Hampshire University Link to Information - http://www.jjssystems.net