Faculty of Electronic Engineering 1 Database Access API’s Aleksandar Stanimirović Leonid Stoimenov Aleksandar Milosavljević.

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.
Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
The ADO Data Control. Universal Data Access Open Database Connectivity (ODBC) –standard for accessing data in databases OLE-DB –allows access to data.
Using Visual Basic 6.0 to Create Web-Based Database Applications
CVEV 118/698 Database Programming Lecture 1 Prof. Mounir Mabsout Elsa Sulukdjian Walid El Asmar.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab10 Interacting with Data (Database Management)
1 Pertemuan 09 Database Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
Database Programming (using ADO) Universal Data Access – Microsoft strategy for providing access to information across the enterprise. – UDA provides high-performance.
Some Introductory Programming 1. Structured Query Language - used for queries. - a standard database product. 2. Visual Basic for Applications - use of.
Microsoft Access Ervin Ha.
Prof. dr Slobodanka Đorđević-Kajan Dr Dragan Stojanović
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Using Visual Basic 6.0 to Create Web-Based Database Applications
COURSE: DATABASES Prof.dr Leonid Stoimenov, mr Aleksandar Stanimirović, dipl.ing Miloš Bogdanović Project IB_JEP (RS) University of Niš Faculty.
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 11 Accessing Database.
Review of Activities of Working Group for Database Systems Prof. Dr Slobodanka Đorđević-Kajan.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
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.
1 Databound Controls. 2 Objectives You will be able to use design time data binding to display and update SQL Server database data without writing any.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Examining.
Database Management School of Business Eastern Illinois University © Abdou Illia, Fall 2002 (Week 16, Monday 12/09/2002)
ADO 2.5 Kamaljit Bath, Program Manager Data Access Group.
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.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Financial Information Management Putting VB & SQL To Work Stefano Grazioli.
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.
Damian Tamayo Tutorial DTM Data Generator Fall 2008 CIS 764.
How to Connect to Database ODBC (Open Database Connectivity) ADO (ActiveX Data Object) ASP Code To Connect to Database Recordset Object Navigating through.
3-Tier Client/Server Internet Example. TIER 1 - User interface and navigation Labeled Tier 1 in the following graphic, this layer comprises the entire.
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.
1 Database Systems Introduction to Microsoft Access Part 2.
ADO.NET Objects – Data Providers Dr. Ron Eaglin. Requirements Visual Studio 2005 Microsoft SQL Server 2000 or 2005 –Adventure Works Database Installed.
RAD to Database Connection Glenn Campbell
AVCE ICT – Unit 7 - Programming Session 16 – Database and VB.
File Server Architecture In File Server Architecture, file server can’t process the data but can only pass on the data to the client who can process it.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 12 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 12 Accessing.
Task #1 Create a relational database on computers in computer classroom 308, using MySQL server and any client. Create the same database, using MS Access.
1 Chapter 10 – Database Management 10.1 An Introduction to Databases 10.2 Editing and Designing Databases.
What’s new in ADO 2.5 Greg Hinkel Program Manager Data Access Group
1 CS 3870/CS 5870: Note07 Prog 4. Master Pages Creating a master page based on another master page MainMasterPage –For all Progs and Tests Prog4MasterPage.
ADO.NET Objects Data Adapters Dr. Ron Eaglin. Agenda Builds on Information in Part I Should have working knowledge of creating a database connection Continuation.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 6: Accessing a database with PHP Rob Gleasure robgleasure.com.
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.
VB.NET and Databases. ADO.NET VB.Net allows you many ways to connect to a database. The technology used to interact with a database or data source is.
CIS 338: VB.NET Printing Dr. Ralph D. Westfall May, 2011.
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.
Accessing the Database Server: ODBC, OLE DB, and ADO
Y.-H. Chen International College Ming-Chuan University Fall, 2004
ADO VBA Programming in Access
Business Intelligence
ActiveX Data Objects (ADO)
Lecture 6 VB.Net SQL Server.
5. Using databases in VB.
ADO.NET Accessing Databases in VS.NET
Database Management  .
Tonga Institute of Higher Education
VISUAL BASIC INTRODUCTION TO DATA CONNECTIVITY.
Chapter 10 ADO.
Working With Databases
Databases Continued 10/18/05.
Presentation transcript:

Faculty of Electronic Engineering 1 Database Access API’s Aleksandar Stanimirović Leonid Stoimenov Aleksandar Milosavljević

Faculty of Electronic Engineering 2 Exercise goals Get familiar with connecting to different data sources through ADO Get know the basic of ADO object model Get familiar with using VB as rapid application development tool Get familiar with using ADO in VB

Faculty of Electronic Engineering 3 ADO Stands for ActiveX Data Objects Part of Universal Data Access architecture ADO object hierarchy Programming with ADO

Faculty of Electronic Engineering 4 Visual Basic integrated environment Object viewer Codingwindow Formdesigner Toolbox Propertywindow

Faculty of Electronic Engineering 5 ADO support in VB Programming with automated data binding tools Programming with ADO objects in VB code

Faculty of Electronic Engineering 6 Adding ADO support in VB ADO support added by default User must add ADO support

Faculty of Electronic Engineering 7 Programming with automated data binding tools Data aware controls ADO Data Control Data Environment Designer

Faculty of Electronic Engineering 8 Data aware controls Almost all VB controls are data aware: Four properties for binding with data source: 1.Data source 2.Data member 3.Data field 4.Data format

Faculty of Electronic Engineering 9 ADO Data Control

Faculty of Electronic Engineering 10 Data Environment Designer

Faculty of Electronic Engineering 11 Programming with ADO objects in VB Set cnNWind = New ADODB.Connection Set rsEmployees = New ADODB.Recordset Dim sConnect As String sConnect = “Provider=Microsoft.Jet.OLEDB.4.0;Data Source= NWind.mdb” cnNWind.Open sConnect rsEmployees.Open “Select * From Employees Order By LastName,FirstName”, cnNWind Do While Nor rsEmployees.EOF Debug.Print rsEmployees!FirstName + rsEmployees!LastName LooprsEmployees.ClosecnNWind.Close

Faculty of Electronic Engineering 12 Exercise 1. Create Data project in VB 2. Using existing form in project show data from specified table in database Place ADO Data control on form Link ADO Data control with existing exercise database on Oracle or MS SQL Server Place controls on form and link them with ADO Data control Add new form in project and show data based on previous exercise query. Using Data environment create connection to existing database on Oracle or SQL Server Create Command object that executes specified SQL query. Place on database fields from Data environment. Add code that scroll database data.