Moving from Microsoft ® ADO 2.X To ADO.NET Jackie Goldstein Renaissance Computer Systems Ltd. MSDN Regional Director, Israel Prerequisites.

Slides:



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

ADO.NET: Working in Disconnected Environment Sergey Baidachni MCT, MCSD, MCDBA.
ADO vs ADO.NET ADOADO.NET Client/server coupledDisconnected collection of data from data server Uses RECORDSET object (contains one table) Uses DATASET.
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.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 13-1 COS 346 Day 25.
14 1 Chapter 14 Database Connectivity and Web Development Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Chapter 14 Database Connectivity and Web Technologies
Objective In this session we will discuss about : What is ADO. NET ?
Web Services November Interoperability “the ability to freely exchange all kinds of spatial information about the Earth and about objects and phenomena.
XML Fundementals XML vs.. HTML XML vs.. HTML XML Document (elements vs. attributes) XML Document (elements vs. attributes) XML and RDBMS XML and RDBMS.
Overview of Microsoft.Net and Vb.Net ITSE 2349 Spring 2002 Material from Microsoft.Net an Overview for ACC faculty by Stuart Laughton and Introduction.
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.
Programming with Visual Basic.NET An Object-Oriented Approach  Chapter 8 Introduction to Database Processing.
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.
Overview of ADO.NET with the.NET Framework Scalable Development, Inc. Building systems today that perform tomorrow.
Developing Web Applications Using Microsoft ® Visual Studio ® 2008.
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)
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 13-1 David M. Kroenke’s Chapter Thirteen: XML and ADO.NET Part Four Database.
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.
CHAPTER EIGHT Accessing Data Processing Databases.
1 Introduction to ADO.NET Microsoft ADO.NET 2.0 Step by Step Rebecca M Riordan Microsoft Press, 2006.
Web Services November Interoperability “the ability to freely exchange all kinds of spatial information about the Earth and about objects and phenomena.
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.
Universal Data Access and OLE DB. Customer Requirements for Data Access Technologies High-Performance access to data Reliability Vendor Commitment Broad.
Database, SQL, and ADO.NET- Part 1 Session 11 Mata kuliah: M0874 – Programming II Tahun: 2010.
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
From DNA to.NET Design Path. Objectives Sketch up a typical Win DNA Application Sketch up the.NET version Compare Design and Implementation Advantages.
© 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:
Presented by Joseph J. Sarna Jr. JJS Systems, LLC
ADO.NET. ADO.NET is a new, improved, and greatly expanded version of ADO that was developed for the Microsoft.NET initiative It incorporates all of the.
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.
Why ADO.NET Not your father’s Data Access.
Mauricio Featherman, Ph.D. Washington St. University
DEV383 The ADO.NET DataSet and You Jackie Goldstein General Manager Renaissance Computer Systems
Module 3: Working with Local Data. Overview Using DataSets Using XML Using SQL Server CE.
HNDIT Rapid Application Development
Module 4 Introduction ADO.NET.
Introduction Because database applications today reside in a complicated environment, various standards have been developed for accessing database servers.
Active Data Objects Using.Net ADO.Net Farooq Ahmed Amna Umber Summayya Shehzad.
Module 5 Data Classes DataView – DataGridView Control 1.
DAT200 Microsoft® ADO.NET for ADO Classic Developers: Introducing ADO.NET Jackie Goldstein Renaissance Computer Systems
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.
Introduction to.NET Building.NET Applications Mike Taulty Developer & Platform Group Microsoft Ltd
ASP.net Course From Intermediate to Advance level By Arsalan Ahmed 3 Months Course Cell :
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
DAT 390 Advanced ADO.NET Programming Techniques Jackie Goldstein Renaissance Computer Systems
Integrating Data Lesson 6.
Introduction to Database Processing with ADO.NET
ADO.NET Framework.
Chris Menegay Sr. Consultant TECHSYS Business Solutions
ADO.NET Accessing Databases in VS.NET
VB.NET Using Database.
Chapter 10 ADO.
Database Applications
Visual Studio + SQL Server Is Better
Introduction to Database Programming through ADO. NET
Presentation transcript:

Moving from Microsoft ® ADO 2.X To ADO.NET Jackie Goldstein Renaissance Computer Systems Ltd. MSDN Regional Director, Israel Prerequisites for presentation: I assume you know: 1) Visual Basic.NET 2) ADO 2.X Level: Intermediate ##

Jackie Goldstein… General Manager of Renaissance Computer Systems –Consulting, Training, & Development, with Microsoft Tools & Technologies Author of “Database Access with Visual Basic.Net” (ISBN , Addison-Wesley) MSDN Regional Director for Israel Founder and monthly host of IVBUG (Israel Visual Basic User Group) Speaker at local & international developer conferences: –Microsoft Developer Days, TechEd, –VSLive!, VBITS, VB DevCon, SQL2TheMax Selected as SME (Subject Matter Expert) to help develop/review content for DevDays with Microsoft team in Redmond

Session Topics ADO.NET Architecture ADO.NET Object Model ADO.NET and XML Summary and Questions

Session Topics ADO.NET Architecture ADO.NET Object Model ADO.NET and XML Summary and Questions

ADO.NET ADO Look and Feel… Direct OLE DB connectivity… Integrated with.NET Framework… Integrated with XML… "Designed for the Enterprise"…

The.NET Framework Applications Are Built Using the Framework Common Language Runtime Memory MgmtType SystemLifetime System Base Classes IOThreadingSecurityServiceProcess DataOledbSQLClientXML System.Web Web ServicesWeb Forms ASP Application Services System.Windows.Forms ControlsDrawing Windows Application Services

ADO.NET Object Model Classic ADO styling… –Connection –Command, Parameter …but a lot more functionality & flexibility –DataReader Forward-only, Read-only "RecordSet" –DataTable and DataSet Disconnected, In-Memory Cache –DataAdapter Connects a DataSet with a data source

.NET Data Provider DataReader Command Connection Sync Data In The.NET Platform Controls, Designers, Code-gen, etc DataSet XmlReader XmlText-ReaderXmlNode-Reader XSL/T, X-Path, Validation, etc XmlData- Document Data-Adapter

Points to Note in ADO.NET vs. ADO Separation between connected data access model and disconnected programming model No CursorType, CursorLocation, or LockType ADO Recordset functionality is split into smaller, specific objects, e.g. DataReader, DataTable, Command ADO.NET allows manipulation of XML data, not just XML as I/O format

Session Topics ADO.NET Architecture ADO.NET Object Model ADO.NET and XML Summary and Questions

.NET Data Providers Manage interaction to a data source Microsoft Implementations –OLEDB.NET Data Provider –SQLServer.NET Data Provider –ODBC.NET Data Provider –Oracle.NET Data Provider –Exchange.NET Data Provider Main Objects: –Connection, Command, Parameter –DataReader, DataAdapter DataStore DataProvider

Demo – Using.NET Data Providers Connection Object Command Object DataReader Object

DataSet Object DataSet DataTable DataTable DataRow DataColumn Relations Constraints XML Schema

DataAdapter Object DataAdapter SelectCommand InsertCommand UpdateCommand DeleteCommand TableMappings Database DataSet

Demo – Using the DataAdapter Simple Fill Database Updates Using the DataAdapter Configuration Wizard

Strongly Typed DataSet Deal with DataSets, Tables, and Rows as Objects –Columns and Relations as properties Class Generated At Design Time –Inherits from DataSet –Schema coded into the class Benefits –Statement completion –Compile time type checking –Concise, readable code

Session Topics ADO.NET Architecture ADO.NET Object Model ADO.NET and XML Summary and Questions

.NET Data Provider DataReader Command Connection Sync Unified Architecture Controls, Designers, Code-gen, etc DataSet XmlReader XmlText-ReaderXmlNode-Reader XSL/T, X-Path, Validation, etc XmlData- Document Data-Adapter

ADO.NET And XML (1) The DataSet –Loads/saves XML data into/out of DataSet –Schema can be loaded/saved as XSD –Schema can be inferred from XML Data

ADO.NET And XML (2) Data is XML is Data XmlDataDocument unifies XML and Data –Simultaneously exposes data relationally or as XML –Exposes a relational view over structured XML Plugs into entire stack of XML services –Subclass of XmlDocument – it’s a DOM –Retains fidelity of underlying document Plugs into entire stack of Data services –Can obtain a DataSet view of an XmlDataDoc –Relational and XML views stay in sync

Scenarios Enabled Simultaneously expose data relationally or as XML –Good for semi-structured data –Multiple tools on same data Map interesting subset relationally using schema –Use natural object model for each subset Both DOM and DataSet can “grow up”

Demo – Accessing XML Data XML Navigation and Selection XML Format in ADO.NET vs. ADO 2.X Synchronization of Relational and XML Views of data

Session Topics ADO.NET Architecture ADO.NET Object Model ADO.NET and XML Summary and Questions

Comparison Between ADO and ADO.NET (1) FeatureADOADO.NET Memory-resident Data Representation RecordSet can contain one table DataSet can contain one or more tables represented by DataTable Object Relationship Between Multiple Tables Require the JOIN querySupports the DataRelation object Data VisitationScans RecordSet rows sequentially Uses a navigation paradigm for non- sequential access Disconnected AccessProvided by RecordSet but typically supports connected access Communicates with standardized calls to the DataAdapter

Comparison Between ADO and ADO.NET (2) FeatureADOADO.NET ProgrammabilityUses Connection object to transmit commands Uses strongly typed programming characteristics of XML Sharing Disconnected Data Between Tiers or Components Uses COM marshalling to transmit disconnected record set Transmits a DataSet with an XML file Transmitting Data Through Firewalls Problematic because firewall are typically configured to prevent system-level requests Supported, DataSet object use XML, which can pass through firewalls ScalabilityDatabase locks and active database connections for long durations Disconnected access to database data without retaining database locks

Session Summary A natural evolution of ADO Designed with extensive XML support Closely integrated with the.NET Framework Provides fast and efficient mechanisms for connected data access and disconnected data manipulation Try it – You’ll Like it !!!

Questions?

Moving from Microsoft ® ADO 2.X To ADO.NET Jackie Goldstein Jackie Goldstein Renaissance Computer Systems Ltd. MSDN Regional Director, Israel Prerequisites for presentation: I assume you know: 1) Visual Basic.NET 2) ADO 2.X Level: Intermediate ##