The ADO Data Control. Universal Data Access Open Database Connectivity (ODBC) –standard for accessing data in databases OLE-DB –allows access to data.

Slides:



Advertisements
Similar presentations
Basics of Database Programming with VB6
Advertisements

Data Base. Objective Become familiar with database terminology. Create a project to display data for a single database table. Use a DataGrid control.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
1 Chapter 12 Working With Access 2000 on the Internet.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
14 1 Chapter 14 Database Connectivity and Web Development Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
VB.NET Database Access ISYS 812. Microsoft Universal Data Access ODBC: Open Database Connectivity –A driver manager –Used for relational databases OLE.
Visual Basic Database Access BICS546. Microsoft Universal Data Access OLE DB: The OLE database protocol –Allows a program to access information in any.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab10 Interacting with Data (Database Management)
Using the Data Access Controls: DAO & ADO Presented by Victor Matos.
Database Programming (using ADO) Universal Data Access – Microsoft strategy for providing access to information across the enterprise. – UDA provides high-performance.
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.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Connecting to Microsoft SQL Server Tuc Goodwin. Introduction We are going to discuss establishing an connection to a SQL Server Database. You will learn.
Overview of Database Access in.Net Josh Bowen CIS 764-FS2008.
© 1999, by Que Education and Training, Chapter 11, pages of Introduction to Computer Programming with Visual Basic 6: A Problem-Solving Approach.
Microsoft Access Ervin Ha.
ODBC Open DataBase Connectivity a standard database access method developed by Microsoft to access data from any application regardless of which database.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
ASP.NET Programming with C# and SQL Server First Edition
Introduction to ADO.Net and Visual Studio Database Tools ISYS 512.
Handling of data from multiple databases. Visual Basic Database Visual Basic application acts as a front-end to the database Visual Basic application.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Using Visual Basic 6.0 to Create Web-Based Database Applications
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 11 Accessing Database.
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.
Microsoft FrontPage 2003 Illustrated Complete Using Office Components.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
Database Management School of Business Eastern Illinois University © Abdou Illia, Fall 2002 (Week 16, Monday 12/09/2002)
File Processing Concepts – Field – combination of 1 or more characters that is the smallest unit of data to be accessed – Record – group of related fields.
Relational Databases Database Driven Applications Retrieving Data Changing Data Analysing Data What is a DBMS An application that holds the data manages.
Introduction to ADO Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Visual Basic ADO Programming 56:150 Information System Design.
Module 9: Accessing Relational Data Using Microsoft Visual Studio.NET.
What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information.
USING XML AS A DATA SOURCE. Data binding is a process by which information in a data source is stored as an object in computer memory. In this presentation,
ActiveX Data Objects (ADO) is Microsoft’s latest database object model. The goal of ADO is to allow VB developers to use a standard set of objects to refer.
Tutorial 91 Databases A database is an organized collection of related information stored in a file on a disk A database allows companies to store information.
ADO.NET Objects – Data Providers Dr. Ron Eaglin. Requirements Visual Studio 2005 Microsoft SQL Server 2000 or 2005 –Adventure Works Database Installed.
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.
Copyright © Curt Hill Connectivity Communicating with the Database.
AVCE ICT – Unit 7 - Programming Session 16 – Database and VB.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
5-1 VISUAL J++ Colorado Technical University IT420 Tim Peterson.
Module 4 Introduction ADO.NET.
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
1 ADO Activex Data Objects. 2 ADO ADO allows users to access data easily from many existing databases (such as Access or Paradox) From ODBC compliant.
DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project -> Component.
Object-Oriented Application Development Using VB.NET 1 Chapter 13 Introduction to Data Access Classes and Persistence.
ADO & Recordsets. ADO Description & History  ActiveX Data Objects  History  1991 ODBC  Data Access Objects (DAO) for VB developers (JET)  Remote.
Using databases ActiveX Data Objects (ADO) Connecting to a database Reading data from a database Inserting, updating and deleting records Using databases.
Data Control In this presentation… –databases supported –inserting a data control –data control properties –using the data control.
Lecture 4 Manipulating Form Data using methods of Recordset and RecordsetClone in VBA Restrict data with filter 1 Rapid Application Development.
 2 Data Object Library approaches ◦ DAO (Data Access Objects)  Original access strategy (up to VB6)  Closely linked to MS Access ◦ ADO (ActiveX Data.
ASP.NET Programming with C# and SQL Server First Edition
Visual Basic Database Access
Accessing the Database Server: ODBC, OLE DB, and ADO
آشنایی با نرم افزار Microsoft Access
VB 2010 Pertemuan 10.
ActiveX Data Objects (ADO)
5. Using databases in VB.
ADO.NET Accessing Databases in VS.NET
Microsoft FrontPage 2003 Illustrated Complete
ربط الفيجوال بيسك VB مع قواعد البيانات
VISUAL BASIC INTRODUCTION TO DATA CONNECTIVITY.
Chapter 10 ADO.
Database Applications
Chapter 10 Accessing Database Files
Presentation transcript:

The ADO Data Control

Universal Data Access Open Database Connectivity (ODBC) –standard for accessing data in databases OLE-DB –allows access to data in many formats –faster and easier to use than ODBC

OLE-DB Application OLE-DB Provider OLE-DB Provider OLE-DB Provider OLE-DB Provider OLE-DB Provider ODBC Data Access SQL Server OracleExcel ODBC ADO …

ADO, DAO and RDO in Visual Basic In Visual Basic, three data access interfaces are available to you: –ActiveX Data Objects (ADO) –Remote Data Objects (RDO) –Data Access Objects (DAO) Data access technology is constantly evolving, and each of the three interfaces represents a different stage of development for data access technology. The latest is ADO. It features a simpler — yet more flexible — object model than either RDO or DAO. For new projects, you should use ADO as your data access interface.

The ADO Object Model Four main objects: *Connection – the link between the program and the data store *Command – allows you to run commands against the data store *Recordset – contains all the data returned from a specific action on the data store *Stream – allows the manipulation of data held in web resources, such as HTML files

Using the ADO Data Control Add the Microsoft ADO Data Control 6.0 (OLEDB) component to your project. Create an instance of the ADO Data Control on your form. Connect to a database with the ADO Data Control by building a connection string. Set the RecordSource property of the ADO Data Control Create bound controls on your form.

Building a Connection String In the properties window of the ADO Data control’s choose the ConnectionString property. 3 Methods From the property pages, choose Use Connection String and choose Build From the Provider tab in the Data Link Properties dialog box, specify which data provider to use. –use Microsoft Jet 4.0 OLE DB Provider for Access databases –choose Next >> to bring up the Connection tab of the Data Link Properties dialog box

Building a Connection String Three methods –Use a data Data Link File –Use an ODBC Data Source Name –Use a Connection String Back

Building a Connection String From the Connection tab, enter your database name and path (or browse for it) Leave the default log on information Test Connection

Set the RecordSource property of the ADO Data Control In the properties window of the ADO Data control’s choose the RecordSource property. Choose a Command Type –adCmdUnknown –adCmdTable –adCmdText –adCmdStoredProc Select a table or enter an SQL statement

Creating Bound Controls Many different controls that can hold text and graphics can be bound to a field in an ADO Data control. Set the DataSource property of the bound control to the ADO Data Control. Set the DataField property of the bound control to the field you want to display