SlideShare a Scribd company logo
Pemrograman Komputer Pertemuan 09 Database Bambang Heru Iswanto, Dr.rer.nat M.Si Jurusan Fisika Fakultas Matematika dan Ilmu Pengetahuan Alam 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |
Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa  akan mampu : Menerapkan penggunaan database dalam aplikasi 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |
Outline Material Introduction to Database Stored and Index Ordering Using ADO with Visual Basic Dataset Datagrid Common Programming Errors and Problem 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |
Introduction to Databases Database: any collection of related data used by an organization Organization: any self-contained social unit such as a company, university, hospital, or family The data in a database consist of two types: Entities Relationships Relational database: a database in which data is stored in tables 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |
Introduction to Database Record: a row in a table Field name: the heading of a column in a table Entity-relationship diagrams (ERDs) express the relationships between entities Cardinality of a relationship refers to the number of one entity that is related to another entity 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |
Introduction to Database ERD Symbols Related to Exactly One Related to One or More Related to Zero or One Related to Zero or More 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |
Introduction to Database Example of ER Diagram Departemen Karyawan Manajer Kendaraan Operasional 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |
Stored and Index Ordering Stored order A table’s original order Determined by the order in which records have been added to the table Index: a separate table of record positions, called pointers, which lists the positions of the table’s records in the desired order Key field: the field on which a table’s records are ordered 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |
Using ADO with Visual Basic ADO is an extremely powerful data access component that allow you to access database data in many formats Using databases in Visual Basic Create a link or connection between the database, known as the data source, and the Visual Basic application Retrieve fields from tables in the database and display them on a Form Store values on the Form in the database 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |
Using ADO with Visual Basic To use a database, an application must: Set up a connection to a data source Create a data adapter to handle the transfer of data to and from the data source and the application Create a dataset to hold the data in memory while the application works with it Add controls to the form and set their properties to bind the controls to the fields in the dataset 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |
Using ADO with Visual Basic Setting up Data Access in Visual Basic Data Source Data Adapter Dataset Connection 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  | Windows Form
Setting Up a Data Connection Any database that is ODBC (Open DataBase Connectivity) compliant can be accessed from within Visual Basic Visual Basic provides a set of Data controls in the Toolbox that are used to set up database access To establish a connection to an Access database: Select the OleDbConnection object Drag an OleDbConnection control from the Toolbox to the Form 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |
Setting up a Data Adapter The data adapter passes data back and forth between a data source and a program Use the OleDbDataAdapter control for a Microsoft Access database Data Adapter Configuration Wizard simplifies the task of using a database table 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |
Setting up a Data Adapter First Screen of the Data Adapter Configuration Wizard 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |
TERIMA KASIH 01/02/11 ©  2010 Universitas Negeri Jakarta  |  www.unj.ac.id  |

More Related Content

PPT
Pemrograman komputer 10 (database)
PDF
1N100 - Ingenieriaelectronica.org
PDF
499326 ds
PDF
Data Sheet Microcontrolador 501916 ds
PDF
PDF
PDF
8279
PDF
1 n3305 -1n3350_(50_watt)
Pemrograman komputer 10 (database)
1N100 - Ingenieriaelectronica.org
499326 ds
Data Sheet Microcontrolador 501916 ds
8279
1 n3305 -1n3350_(50_watt)

What's hot (20)

PDF
Zoola Analytics – Creating Impactful Insights With Reports and Dashboards
PDF
Data Convergence White Paper
PPTX
Data basis & mega
PDF
8251
PDF
8259 a
PDF
Lambda Lab: Zoola Analytics - How to Embed and Schedule Reports and Dashboards
PDF
Datability-Improve Compliance and Student Performance Through Data Driven Edu...
PPTX
Databases and SQL - Lecture B
PPTX
Data Dictionary in System Analysis and Design
PPTX
EOSC Portal End-User Component Tutorial
PPTX
Database model
PDF
F04302053057
PPT
Database model BY ME
PDF
Zoola Analytics – Using Filters For Better Reporting And Insights
PPTX
Business Intelligence / Management Information Demonstration using Power Quer...
PPTX
Data Dictionary
PPTX
Jarrar: Architectural solutions in Data Integration
PPTX
Jarrar: Data Schema Integration
PPTX
Drexel University Computing Academy - iSchool Research Presentation
Zoola Analytics – Creating Impactful Insights With Reports and Dashboards
Data Convergence White Paper
Data basis & mega
8251
8259 a
Lambda Lab: Zoola Analytics - How to Embed and Schedule Reports and Dashboards
Datability-Improve Compliance and Student Performance Through Data Driven Edu...
Databases and SQL - Lecture B
Data Dictionary in System Analysis and Design
EOSC Portal End-User Component Tutorial
Database model
F04302053057
Database model BY ME
Zoola Analytics – Using Filters For Better Reporting And Insights
Business Intelligence / Management Information Demonstration using Power Quer...
Data Dictionary
Jarrar: Architectural solutions in Data Integration
Jarrar: Data Schema Integration
Drexel University Computing Academy - iSchool Research Presentation
Ad

Viewers also liked (20)

PPT
Pengantar Pemrograman Visual II
DOCX
Program pascal menghitung ipk
PDF
4 tip dan trik database dalam vb.net
PPTX
Functions
PDF
Mi 02.-praktikum-pemrograman-visual-1
PDF
Mi 03.-praktikum-pemrograman-visual-2
PDF
123 Tip & Trik ActionScript Flash MX 2004
PDF
03. prak.-pemrograman-visual-i-vb.net
PPTX
Materi Pemrograman Berbasis Desktop
PDF
27. prak.-algoritma-pemrograman-ii
PDF
05. prak.-pemrograman-visual-ii
PPTX
Perulangan While do, For to do, dan Repeat Until dalam Pascal
PPTX
Part 10 pengantar basis data
PPT
Pertemuan 05 - 06 Pemrograman C
PDF
Buku Studi Islam 3 (Dr. Ahmad Alim, LC. MA.)
PDF
Basis data
DOCX
Membuat aplikasi sederhana menggunakan java
DOCX
Aplikasi penjualan busana fashion berbasis dekstop
PPTX
GUI Programming in JAVA (Using Netbeans) - A Review
DOCX
Aplikasi Koperasi Mahasiswa (Kopma) Berbasis Java Desktop
Pengantar Pemrograman Visual II
Program pascal menghitung ipk
4 tip dan trik database dalam vb.net
Functions
Mi 02.-praktikum-pemrograman-visual-1
Mi 03.-praktikum-pemrograman-visual-2
123 Tip & Trik ActionScript Flash MX 2004
03. prak.-pemrograman-visual-i-vb.net
Materi Pemrograman Berbasis Desktop
27. prak.-algoritma-pemrograman-ii
05. prak.-pemrograman-visual-ii
Perulangan While do, For to do, dan Repeat Until dalam Pascal
Part 10 pengantar basis data
Pertemuan 05 - 06 Pemrograman C
Buku Studi Islam 3 (Dr. Ahmad Alim, LC. MA.)
Basis data
Membuat aplikasi sederhana menggunakan java
Aplikasi penjualan busana fashion berbasis dekstop
GUI Programming in JAVA (Using Netbeans) - A Review
Aplikasi Koperasi Mahasiswa (Kopma) Berbasis Java Desktop
Ad

Similar to Pemrograman komputer 9 (database) (20)

DOCX
Data documentation and retrieval using unity in a universe®
PPTX
DATA BASE MANAGEMENT AND RELATIONAL DATA
PPT
Introduction to ado.net
PPTX
unit v - VP - Database connectivity.pptx
PDF
Implementing Mobile Reports in SQL Sserver 2016 Reporting Services
DOCX
PROJECT FOR CSE BY TUSHAR DHOOT
PPTX
6 database
DOC
PDF
WEB PROGRAMMING USING ASP.NET
PDF
Visual Basic.Net & Ado.Net
PPTX
Chapter 3: ado.net
PPS
Vb.net session 05
PPTX
Mobile Offline First for inclusive data that spans the data divide
PPTX
Module-1 Data base management systems chap1-Introduction to database.pptx
PPT
Dbms
PPT
Unit 1
PPT
ADO .Net
PPT
this ppt is for database management systemthis ppt is for database management...
Data documentation and retrieval using unity in a universe®
DATA BASE MANAGEMENT AND RELATIONAL DATA
Introduction to ado.net
unit v - VP - Database connectivity.pptx
Implementing Mobile Reports in SQL Sserver 2016 Reporting Services
PROJECT FOR CSE BY TUSHAR DHOOT
6 database
WEB PROGRAMMING USING ASP.NET
Visual Basic.Net & Ado.Net
Chapter 3: ado.net
Vb.net session 05
Mobile Offline First for inclusive data that spans the data divide
Module-1 Data base management systems chap1-Introduction to database.pptx
Dbms
Unit 1
ADO .Net
this ppt is for database management systemthis ppt is for database management...

More from jayamartha (20)

DOC
Kalkulus 1 - Kuis 4
DOC
Kalkulus 1 - Kuis 3
DOC
Kalkulus 1 - Kuis 2
DOC
Kalkulus 1 - Kuis 1
PPTX
PPT
Week 15 kognitif
PPT
15-superconductivity
PPT
12-14 d-effect_of_electron_-_electron_interaction
PPT
7-metal_vs_semiconductor
PPT
12 -14 c-spin_paramagnetism
PPT
12 -14 b-diamagnetism
PPT
12-14 a-magnetic_effects_in_quantum _mechanics
PPT
Week4-5 tb-kognitif
PPT
10-11 a-energy_bands
PPT
7 -metal_vs_semiconductor
PPT
Week-13 model pembelajaran
PPT
5-6-definition_of_semiconductor
PPT
Week-15 kognitif
PPT
Week 15 kognitif
PPT
Pert 1-4
Kalkulus 1 - Kuis 4
Kalkulus 1 - Kuis 3
Kalkulus 1 - Kuis 2
Kalkulus 1 - Kuis 1
Week 15 kognitif
15-superconductivity
12-14 d-effect_of_electron_-_electron_interaction
7-metal_vs_semiconductor
12 -14 c-spin_paramagnetism
12 -14 b-diamagnetism
12-14 a-magnetic_effects_in_quantum _mechanics
Week4-5 tb-kognitif
10-11 a-energy_bands
7 -metal_vs_semiconductor
Week-13 model pembelajaran
5-6-definition_of_semiconductor
Week-15 kognitif
Week 15 kognitif
Pert 1-4

Recently uploaded (20)

PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Classroom Observation Tools for Teachers
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Pre independence Education in Inndia.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Cell Types and Its function , kingdom of life
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
master seminar digital applications in india
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Microbial diseases, their pathogenesis and prophylaxis
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPH.pptx obstetrics and gynecology in nursing
Classroom Observation Tools for Teachers
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
O7-L3 Supply Chain Operations - ICLT Program
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Pre independence Education in Inndia.pdf
Supply Chain Operations Speaking Notes -ICLT Program
VCE English Exam - Section C Student Revision Booklet
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
TR - Agricultural Crops Production NC III.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Cell Types and Its function , kingdom of life
2.FourierTransform-ShortQuestionswithAnswers.pdf
master seminar digital applications in india
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
human mycosis Human fungal infections are called human mycosis..pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Microbial diseases, their pathogenesis and prophylaxis

Pemrograman komputer 9 (database)

  • 1. Pemrograman Komputer Pertemuan 09 Database Bambang Heru Iswanto, Dr.rer.nat M.Si Jurusan Fisika Fakultas Matematika dan Ilmu Pengetahuan Alam 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |
  • 2. Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : Menerapkan penggunaan database dalam aplikasi 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |
  • 3. Outline Material Introduction to Database Stored and Index Ordering Using ADO with Visual Basic Dataset Datagrid Common Programming Errors and Problem 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |
  • 4. Introduction to Databases Database: any collection of related data used by an organization Organization: any self-contained social unit such as a company, university, hospital, or family The data in a database consist of two types: Entities Relationships Relational database: a database in which data is stored in tables 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |
  • 5. Introduction to Database Record: a row in a table Field name: the heading of a column in a table Entity-relationship diagrams (ERDs) express the relationships between entities Cardinality of a relationship refers to the number of one entity that is related to another entity 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |
  • 6. Introduction to Database ERD Symbols Related to Exactly One Related to One or More Related to Zero or One Related to Zero or More 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |
  • 7. Introduction to Database Example of ER Diagram Departemen Karyawan Manajer Kendaraan Operasional 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |
  • 8. Stored and Index Ordering Stored order A table’s original order Determined by the order in which records have been added to the table Index: a separate table of record positions, called pointers, which lists the positions of the table’s records in the desired order Key field: the field on which a table’s records are ordered 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |
  • 9. Using ADO with Visual Basic ADO is an extremely powerful data access component that allow you to access database data in many formats Using databases in Visual Basic Create a link or connection between the database, known as the data source, and the Visual Basic application Retrieve fields from tables in the database and display them on a Form Store values on the Form in the database 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |
  • 10. Using ADO with Visual Basic To use a database, an application must: Set up a connection to a data source Create a data adapter to handle the transfer of data to and from the data source and the application Create a dataset to hold the data in memory while the application works with it Add controls to the form and set their properties to bind the controls to the fields in the dataset 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |
  • 11. Using ADO with Visual Basic Setting up Data Access in Visual Basic Data Source Data Adapter Dataset Connection 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id | Windows Form
  • 12. Setting Up a Data Connection Any database that is ODBC (Open DataBase Connectivity) compliant can be accessed from within Visual Basic Visual Basic provides a set of Data controls in the Toolbox that are used to set up database access To establish a connection to an Access database: Select the OleDbConnection object Drag an OleDbConnection control from the Toolbox to the Form 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |
  • 13. Setting up a Data Adapter The data adapter passes data back and forth between a data source and a program Use the OleDbDataAdapter control for a Microsoft Access database Data Adapter Configuration Wizard simplifies the task of using a database table 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |
  • 14. Setting up a Data Adapter First Screen of the Data Adapter Configuration Wizard 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |
  • 15. TERIMA KASIH 01/02/11 © 2010 Universitas Negeri Jakarta | www.unj.ac.id |