Introduction to Database Development Using Borland Data Providers 2128 Martin Rudy.

Slides:



Advertisements
Similar presentations
Database Management Using Microsoft Access Xinhua Chen, Ph.D. Chinese Association of Professionals in Science and Technology March 23, 2003.
Advertisements

Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Chapter 18 - Data sources and datasets 1 Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Chapter 12: Using ADO.NET 2.0 Programming with Microsoft Visual Basic 2005, Third Edition.
Integrating Access with the Web and with Other Programs.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
VB.NET Database Access ISYS 812. Microsoft Universal Data Access ODBC: Open Database Connectivity –A driver manager –Used for relational databases OLE.
Introduction to ADO.Net, VB.Net Database Tools and Data Binding ISYS 512.
Chapter 14: Advanced Topics: DBMS, SQL, and ASP.NET
SiS Technical Training Development Track Technical Training(s) Day 1 – Day 2.
Overview of Database Access in.Net Josh Bowen CIS 764-FS2008.
Oracle Developer Tools for Visual Studio.NET Curtis Rempe.
DEV 301 Oracle Developer Tools for Visual Studio.NET Christian Shay, Oracle Corporation Alex Keh, Oracle Corporation.
Some Basic Database Terminology
Databases and LINQ Visual Basic 2010 How to Program 1.
Programming with Visual Basic.NET An Object-Oriented Approach  Chapter 8 Introduction to Database Processing.
Introduction to ADO.Net and Visual Studio Database Tools ISYS 512.
Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation.
Visual Studio ®.NET Data with XML Carlotta Eaton ( Associate Professor of IST New River Community College Slides by Microsoft Modified.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Introduction to SQL Steve Perry
ADO.NET Tools and Wizards. Slide 2 Data Sources Window (Introduction) Use the Data Sources window to Establish a connection Create bound control instances.
Overview of Data Access MacDonald Ch. 15 MIS 324 Professor Sandvig.
Developing Web Applications Using Microsoft ® Visual Studio ® 2008.
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.
CHAPTER EIGHT Accessing Data Processing Databases.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Examining.
Designing and Developing WS B. Ramamurthy. Plans We will examine the resources available for development of JAX-WS based web services. We need an IDE,
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.
Data Management Console Synonym Editor
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.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
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
DAT 360: DTS in SQL Server 2000 Best Practices Euan Garden Group Manager, SQL Server Microsoft Corporation.
© 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)
1 Chapter 20 – Data sources and datasets Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Mauricio Featherman, Ph.D. Washington St. University
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Introduction to ADO.Net and VS Database Tools and Data Binding ISYS 350.
DEV383 The ADO.NET DataSet and You Jackie Goldstein General Manager Renaissance Computer Systems
5-1 VISUAL J++ Colorado Technical University IT420 Tim Peterson.
Developing Database Applications with the Microsoft.NET Framework Cary Jensen Jensen Data Systems, Inc.
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#.
ADO.NET Architecture MIS3502: Application Integration and Evaluation David Schuff Adapted from material by Arnold Kurtz, David.
1 Database Programming with ADO.NET Kashef Mughal.
Module 5 Data Classes DataView – DataGridView Control 1.
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.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
Technology Drill Down: Windows Azure Platform Eric Nelson | ISV Application Architect | Microsoft UK |
Chapter 9 Working with Databases. Copyright © 2011 Pearson Addison-Wesley Introduction In this chapter you will learn: – Basic database concepts – How.
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.
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.
Working in the Forms Developer Environment
ADO.NET Framework.
Active Data Objects Binding ASP.NET Controls to Data
VB.NET Using Database.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Chapter 10 ADO.
Database Applications
Chapter 10 Accessing Database Files
Active Data Objects Binding ASP.NET Controls to Data
Introduction to ADO.Net and Visual Studio Database Tools.
Presentation transcript:

Introduction to Database Development Using Borland Data Providers 2128 Martin Rudy

Agenda –BDP Architecture Overview –BDP Components –Connection to data –Using the Data Explorer –Updating data / Transactions –Master / Detail –Dynamic Queries –Migrating to BDP –Data resolving

Additional BDP Sessions Mon 2186 Building Database Applications with ADO.NET 3188 ASP.NET Web Forms and Databases Tue 2106 The ADO.NET DataSet In-depth Wed 4100 Integrating into the Borland Data Provider 3188 ASP.NET Web Forms and Databases 3116 Top 10 Techniques for Microsoft.NET DB Dev

BDP Architecture Overview –Implementation for ADO.NET Data Provider interfaces –Includes set of component designers –Live data –Adds following extensions: metadata retrival schema creation

Supported Databases –ORACLE 9.1.2, –Microsoft SQL Server 2000 –MSDE –Access –InterBase 7.x –Sybase 12.5

BDP Components

DataSet

New in Diamondback –BdpCopyTable Copy table data and PK –Data Resolving DataHub DataSync –Data Remoting RemoteConnection RemoteServer

Connecting to data –Place a BdpConnection component –Set connection parameters –Place a BdpDataAdapter and define SQL statements –Create a dataset –Activate BdpDataAdapter –Place a data aware control and connection to dataset

Code Demo Connecting to data

Using the Data Explorer –Tool to browse databases –Establish named connections –Display table schemas, stored procs, views –Modify data – update and rollback option –Alter, drop, copy, paste table –SQL Window –Data migration –Available outside IDE

Code Demo Using the Data Explorer

Data updating basics –Two BdpDataAdapter methods: Update AutoUpdate –BdpCommandBuilder Developer handled updates

Code Demo Data updating basics

Column Properties –Properties for each column –Like TField properties –Use Tables property on DataSet –Displays Table Collections Editor –Select Columns property –Display Columns Collections Editor

Code Demo Column Properties

Transactions –BdpTransaction Commit Rollback –Create instance of BdpTransaction –BeginTransaction from connection

Code Demo Transactions

Master / Detail –Need two BdpDataAdapter components –Create SQL for master and detail –Populate same dataset –Activate both adapters –Modify dataset Relations property Use Relations Collection Editor Define Parent and Child tables –Detail DataMember property use relationship name

Code Demo Master / Detail

Dynamic Queries –Specify SQL in BdpDataAdapter –Use ? for parameter place holder –Modify BdpDataDataAdaper SelectCommand property –Use Parameters property to display BdpParameter CollectionEditor to define parameters –Assign parameter value as follows: BdpSelectCommand1.Parameters['cntry'].Value

Code Demo Dynamic Queries

Migrating to BDP Components ConnectionBdpConnection DataSetProvider (DSP)BdpDataAdapter BdpDataHub/BdpDataSync ClientDataSet (CDS)DataSet TransDesc, IBTransactionBdpTransaction

Migrating to BDP Events DSP.BeforeUpdateRecord DSP.AfterUpdateRecord BdpDataAdapter.RowUpdating BdpDataAdapter.RowUpdated DataSet.BeforePost DataSet.AfterPost DataSet.Tables RowChanging DataSet.Tables RowChanged DataSet.BeforeDelete DataSet.AfterDelete DataSet.Tables RowDeleting DataSet.Tables RowDeleted TField.OnValidateDataSet.Tables ColumnChanging DataSet.Tables ColumnChanged

Migrating to BDP Methods CDS.ApplyUpdatesBdpDataAdapter.AutoUpdate CDS.DeltaDataSet/Tables GetChanges CDS.CancelUpdatesDataSet/Tables RejectChanges CDS.ChangeCount > 0DataSet.HasChanges CDS.CloneCursorDataSet/Tables Clone CDS.EmptyDataSetDataSet/Tables Clear CDS.LoadFromFile(xml)DataSet.ReadXml CDS.WriteToFile(xml)DataSet.WriteXml CDS.MergeChangeLogDataSet/Tables AcceptChanges

Migration to BDP Properties DSP.UpdateModeBdpUpdateMode (All, Key, Changed) DataSet.StateDataSet.Tables Rows RowState EOF/BOFNone – need to use DataRow TField propertiesDataSet ColumnCollection

Code Demo Migrating to BDP

Data Resolving –DataHub Client side cache for DataSet From any IDataProvider –DataSync holds a collection of DataProviders BDP and non-BDP Optimal SQL generation for BDP Uses CommandBuilder for non BDP providers –Similar to TDataSetProvider Error dataset not returned Integrated into dataset

Introduction to Database Development Using Borland Data Providers Martin Rudy 2128 Q & A