{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ADO1 - Database Connectivity with ADO.NET Overview ADO.NET...

Info icon This preview shows pages 1–17. Sign up to view the full content.

View Full Document Right Arrow Icon
Database Connectivity with ADO.NET
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 Overview Overview ADO.NET Architecture Data Access Using Server Explorer Database Connection Working with ADO.NET Adapters Data Adapter Wizard Working with ADO.NET Datasets Accessing Data Cells Other ADO.NET Objects – Data readers, Data views
Image of page 2
3 Use VB.NET controls to display and manipulate data residing in the underlying databases ? ADO .NET (ActiveX Data Objects) acts as a bridge between VB .NET controls and the underlying database. ADO .NET is the collection of classes (objects) that are designed to support data access and data manipulation. Introduction Introduction
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4 ADO.NET Architecture ADO.NET Architecture At a higher level glance Data Connection – Connects to the database Data adapter – Query a database table using SQL Dataset – Stores the data returned by a data adapter
Image of page 4
5 ADO.NET Architecture ADO.NET Architecture Detailed architecture
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
6 Data Access Using Server Explorer Data Access Using Server Explorer Server explorer allows us to create data connections with various data sources. It also displays the list of tables and views (queries) for established data connections.
Image of page 6
7 Data Access Using Server Explorer Data Access Using Server Explorer Example Display the student table from University database on Windows form using the server explorer. Step 1 – Make a connection with the database
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
8 Data Access Using Server Explorer Data Access Using Server Explorer Select the Microsoft Jet 4.0 OLE DB Data Provider
Image of page 8
9 Data Access Using Server Explorer Data Access Using Server Explorer Select the University database using the Select Access Database dialog . Test and verify the connection .
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
10 Data Access Using Server Explorer Data Access Using Server Explorer Step 2 – Create a data adapter Drag the tblStudent from table listing in Server Explorer on Windows Form1.
Image of page 10
11 Data Access Using Server Explorer Data Access Using Server Explorer Step 3 – Create a dataset Generating Dataset - options
Image of page 11

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
12 Data Access Using Server Explorer Data Access Using Server Explorer Generate Dataset Dialog Component Tray
Image of page 12
13 Data Access Using Server Explorer Data Access Using Server Explorer Step 4 – Bind the Dataset to a Control Add a Data Grid control on Form 1 from a Toolbox Bind
Image of page 13

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
14 Data Access Using Server Explorer Data Access Using Server Explorer Step 5 - Write two lines of VB.NET code
Image of page 14
15 Data Access Using Server Explorer Data Access Using Server Explorer Output in data grid
Image of page 15

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
16 Data Access Using Server Explorer Data Access Using Server Explorer Steps for database connectivity - Summary Create a database connection using Server Explorer. Drag a table from the Server Explorer on a form to automatically create a data adapter.
Image of page 16
Image of page 17
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern