ADO.NET Accessing Databases in VS.NET

Slides:



Advertisements
Similar presentations
Data Base. Objective Become familiar with database terminology. Create a project to display data for a single database table. Use a DataGrid control.
Advertisements

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 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
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.
VB.NET Database Access ISYS546. Microsoft Universal Data Access ODBC: Open Database Connectivity –A driver manager –Used for relational databases OLE.
IS437: Spring 2006 Instructor: Dr. Boris Jukic Interacting with a Database: ADO.Net.
The ADO Data Control. Universal Data Access Open Database Connectivity (ODBC) –standard for accessing data in databases OLE-DB –allows access to data.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Using ADO.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
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.
1 Pertemuan 09 Database Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
Introduction to ADO.Net and Visual Studio Database Tools ISYS 512.
C# Programming: From Problem Analysis to Program Design1 Working with Databases C# Programming: From Problem Analysis to Program Design 3 rd Edition 14.
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.
Objective In this session we will discuss about : What is ADO. NET ?
Introduction to ADO.Net and Visual Studio Database Tools
Overview of Database Access in.Net Josh Bowen CIS 764-FS2008.
CIS 764 – Presentation Somil Chandwani.  With Microsoft Data Access Components (MDAC), developers can connect to and use data from a wide variety of.
C# programming with database Basic guideline. First step Install SQL Server 2008/2010 (Professional edition if possible) Install Visual Studio 2008/2010.
Some Basic Database Terminology
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
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.
ADO Connect Y.-H. Chen International College Ming-Chuan University Fall, 2004.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Using Visual Basic 6.0 to Create Web-Based Database Applications
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.
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.
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.
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.
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.
Module 9: Accessing Relational Data Using Microsoft Visual Studio.NET.
Module 7: Accessing Data by Using ADO.NET
Presented by Joseph J. Sarna Jr. JJS Systems, LLC
Using Adapter Wizard ISYS 512. Data Adapter Wizard – 2 nd Level of Using ADO.Net Configure Data Adapter and generating a dataset: –From the Data tab of.
Introduction to ADO.Net and VS Database Tools and Data Binding ISYS 350.
Adding an ODBC source ODBC is Windows’ way of talking to a database Start->Settings-> Control Panel-> ODBC Data Sources Do not try this until I send you.
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 Architecture MIS3502: Application Integration and Evaluation David Schuff Adapted from material by Arnold Kurtz, David.
Module 4 Introduction ADO.NET.
1 Database Programming with ADO.NET Kashef Mughal.
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.
Active Data Objects Using.Net ADO.Net Farooq Ahmed Amna Umber Summayya Shehzad.
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 ADO.Net and Visual Studio Database Tools ISYS 350.
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.
.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
Introduction to ADO.NET
Introduction to Database Processing with ADO.NET
Accessing the Database Server: ODBC, OLE DB, and ADO
Introduction to Database Processing with ADO.NET
VB 2010 Pertemuan 10.
Lecture 6 VB.Net SQL Server.
VB.NET Using Database.
Brief description on how to navigate within this presentation (ppt)
VISUAL BASIC INTRODUCTION TO DATA CONNECTIVITY.
Опит в използването на ODP.NET с Oracle 9i
Chapter 10 ADO.
Database Applications
Chapter 10 Accessing Database Files
Introduction to ADO.Net and Visual Studio Database Tools.
Presentation transcript:

ADO.NET Accessing Databases in VS.NET Professor Corinne Hoisington

ActiveX Data Objects ADO.NET has a number of classes that : Retrieve Data Manipulate Data Update Data VB,C#, C++, J#

ADO vs. ADO.NET ADO works great, but: Requires COM and Windows Recordsets don’t travel well over the Internet Connected behavior is hard to work with Requires more code ADO.NET solves these problems Uses XML under the covers for all data transport No special code needed to marshal across the Internet

Disconnected? ADO.NET offers the capability of working with databases in a disconnected manner. An entire database table can be retrieved to a local computer/temp file if it is a network database. A connection could also be constant

Web-Centric Applications Download the data and process it at a local level. If changes are made, the connection can be remade and the changes posted. The database could be LAN or Internet based.

Data Providers MS SQL Server 7.0+ Oracle OLE DB (old SQL & Access- Jet 4.0) Open Database Connectivity (ODBC)- earlier Visual Studio, Access Driver, ODBC for Oracle * Version 1.0 does not include ODBC

4 Core Classes of ADO.NET Connection-Connect to database Command-SQL statement to retrieve data DataReader-Sequential access to the data source DataAdapter-Populate a dataset & Update the database

Other ADO Terms Fill : The OleDbDataAdapter method Fill retrieves information from the database associated with OleDbConnection and places this information in the DataSet. DataGrid: A DataGrid is the area which will be filled with data from the database. The DataGrid method SetDataBinding binds a DataGrid to a data source.

Architecture

Choices? Using ADO.NET we can either display information in a: DataGrid Individual Controls

Let’s Connect to a Database

Adding a Connection The ADD CONNECTION option is built into ADO.NET to create a database connection in the DATA LINK PROPERTIES window. The DATA ADAPTER CONFIGURATION WIZARD is used to set up an OleDbDataAdapter which generates queries to the connected database.

Connecting to the Database Dragging an OleDbDataAdapter from the Toolbox to the form of displays the Data Adapter Configuration Wizard. Clicking Next on the welcome screen displays the Choose Your Data Connection window. Clicking the New Connection button pops up the Data Link Properties form. Click the Provider tab, choose Microsoft Jet 4.0 OLE DB Provider

SQL Commands:Creating a Query

Time to try it! Northwind Database

Using a Data Form Wizard

Choosing Tables

Fill the Form

Let’s Create Fill in Controls Form Wizard for Northwind