JK VB Net 9 Database Ado
JK VB Net 9 Database Ado
Introduction
Basic database terminology
Fundamental database concepts
Use ADO .NET to access databases
Use the DataGridView control
Documenting your code
Database Management
1 Systems
Oracle
DB2
MySQL
Database Concepts
2
A database is a collection of one or
more tables, each containing data
related to a particular topic
Terminology
Database: a collection of interrelated tables
Table: a logical grouping of related data
A category of people, places, or things
Column Field
VB and SQL Server Data Types
VB data types must match table data types
SQL Server and VB have similar data types
Data
Handles
Provider
Adapter DataSet
D communicatio
Provides general
n with a The actual data
A disconnected access
physical data
to data C
T store. Knows how to do SQL
Connectio L
A n commands on the database
Command I
B
E
A
Reader N
S
T
E A light weight object for
sequential read-only access
to a query result.
ADO.N
ET
http://msdn.microsoft.com/en-us/library/a6cd7c08.aspx
Data Provider
A data provider is used for connecting to a database,
executing commands and retrieving data, storing it in a
dataset, reading the retrieved data and updating the
database.
Collection of Class Definitions
Specific to a data source
MS SQL Server
Oracle
(others)
controls to a dataset
Table adapter – uses SQL to select data
Labels
Press Delete
Binding Individual Fields to Controls
Use the dataset in the Data Sources window
Select Details from the table drop-down list