SlideShare a Scribd company logo
Accessing Data within Your ApplicationAdvanced Visual Basic
OverviewThe management of databases is the number one use of computers today.  A database (or relational database) is a collection of one or more (usually related) tables that has been created with database-management software.  For our course, we will be using Microsoft Access for the database management software.  We can connect our applications to databases using ADO.NET (ActiveX Data Objects .NET).  This technology allows programs to access data seamlessly from multiple, varied, and distant servers.    
Wizards vs. ADOOur text and Microsoft recommend the use of database wizards to complete the connections and management of data.  However, there is another way. You can connect to databases in code and be in complete control of what is happening within your application.  This is what I prefer because if I can't see the code to a process, I can't debug it!  Does the wizard have a place in programming?  SURE!  I do not use it at all professionally, but I can see the wizards having a place within small applications.vs.
How does ADO work?Connection – This uses a connection string to say how we will connect to data and what format the data is inData Adapter – Converts database code to VB code (to simplify process). …. Populates dataset with dataData Set – Snapshot of data when you read it from the databaseCommand Builder – Allows you to add, edit, delete data
Bind Controls?ADO wizard allows you to bind controls.  This is a real easy way of displaying information, but does complicate review of data and verification of accuracy.  You can bind controls as well using ADO in code, but I find it just as easy to create a process to read and write to the controls.
DataGridView ControlThe datagridview control is a very popular method of displaying information in a VB application.  You may bind to this control or add/edit items in code.
Database InteractionQuestion: Where have you recently seen a database interaction application?
Additional InformationFor additional information about these topics, please review your text and the links provided in Blackboard.

More Related Content

What's hot (18)

PPT
Cloud presentation
Pyvot
 
PPTX
Ado.net entity framework_4.0
Rishu Mehra
 
PDF
Democratization of Data @Indix
Manoj Mahalingam
 
PPTX
Microsoft PowerApps
Rene Modery
 
PDF
Portfolio Npf Ms Batch Loader
Chris Chubb
 
PPTX
Microsoft Flow - Easy Desktop Integration
Daniel Toomey
 
PPTX
Ibm watson
Vivek Mohan
 
PPTX
Introduction to Microsoft Flow : Power to the People (Serge Luca, Isabelle Va...
serge luca
 
PPTX
Cloud Design Patterns
Karthikeyan VK
 
PDF
CQRS : Introduction
Topu Newaj
 
PPTX
Microsoft Azure News - June 2016
Daniel Toomey
 
PPTX
Putting Kit back in SDK
darrelmiller71
 
PDF
CI/DC in MLOps by J.B. Hunt
Databricks
 
PPTX
Improve your Dynamics 365 usage with AI
Nicolas Georgeault
 
DOC
File uploading through paperclip in rails 3.x
Andolasoft Inc
 
PPTX
Pillars of great Azure Architecture
Karthikeyan VK
 
PDF
Analyzing Mixpanel Data with SQL
Janessa Lantz
 
PDF
Live wireframe data mashups overview brochure
Newton Day Uploads
 
Cloud presentation
Pyvot
 
Ado.net entity framework_4.0
Rishu Mehra
 
Democratization of Data @Indix
Manoj Mahalingam
 
Microsoft PowerApps
Rene Modery
 
Portfolio Npf Ms Batch Loader
Chris Chubb
 
Microsoft Flow - Easy Desktop Integration
Daniel Toomey
 
Ibm watson
Vivek Mohan
 
Introduction to Microsoft Flow : Power to the People (Serge Luca, Isabelle Va...
serge luca
 
Cloud Design Patterns
Karthikeyan VK
 
CQRS : Introduction
Topu Newaj
 
Microsoft Azure News - June 2016
Daniel Toomey
 
Putting Kit back in SDK
darrelmiller71
 
CI/DC in MLOps by J.B. Hunt
Databricks
 
Improve your Dynamics 365 usage with AI
Nicolas Georgeault
 
File uploading through paperclip in rails 3.x
Andolasoft Inc
 
Pillars of great Azure Architecture
Karthikeyan VK
 
Analyzing Mixpanel Data with SQL
Janessa Lantz
 
Live wireframe data mashups overview brochure
Newton Day Uploads
 

Similar to Accessing data within VB Applications (20)

PPTX
Is2215 lecture7 lecturer_ado_intro
dannygriff1
 
PDF
Ado.Net
LiquidHub
 
PPT
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
Muralidharan Radhakrishnan
 
DOC
Class 1
Vota Ppt
 
PPS
Vb.net session 05
Niit Care
 
PDF
Visual basic databases
Speed Cyber Cafe
 
PDF
LECTURE MICROSOFT ACCESS INFORMATION TECHNOLOGY
rashadpk67
 
PPT
01 Microsoft Access
Laguna State Polytechnic University
 
PDF
Database Programming With Visual Basic Net And Adonet Tips Tutorials And Code...
keeverfelmor
 
PPT
Session 7 Bai 7 ve winform
mrtom16071980
 
PPS
Ado.net session01
Niit Care
 
PDF
Database Programming with Visual Basic NET and ADO NET Tips Tutorials and Cod...
myebrgsvs796
 
PPS
Vb net xp_05
Niit Care
 
PPTX
MS ACCESS
Dayananda Sujivan
 
PPT
ADO.net control
Paneliya Prince
 
PPTX
Ado .net
Manish Singh
 
PDF
Visual Basic.Net & Ado.Net
FaRid Adwa
 
DOC
Access database
phaocake
 
PPT
2310 b 09
Krazy Koder
 
PPT
Pemrograman komputer 9 (database)
jayamartha
 
Is2215 lecture7 lecturer_ado_intro
dannygriff1
 
Ado.Net
LiquidHub
 
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
Muralidharan Radhakrishnan
 
Class 1
Vota Ppt
 
Vb.net session 05
Niit Care
 
Visual basic databases
Speed Cyber Cafe
 
LECTURE MICROSOFT ACCESS INFORMATION TECHNOLOGY
rashadpk67
 
Database Programming With Visual Basic Net And Adonet Tips Tutorials And Code...
keeverfelmor
 
Session 7 Bai 7 ve winform
mrtom16071980
 
Ado.net session01
Niit Care
 
Database Programming with Visual Basic NET and ADO NET Tips Tutorials and Cod...
myebrgsvs796
 
Vb net xp_05
Niit Care
 
ADO.net control
Paneliya Prince
 
Ado .net
Manish Singh
 
Visual Basic.Net & Ado.Net
FaRid Adwa
 
Access database
phaocake
 
2310 b 09
Krazy Koder
 
Pemrograman komputer 9 (database)
jayamartha
 
Ad

More from robertbenard (20)

PPTX
Sample
robertbenard
 
PPTX
Xampe
robertbenard
 
PPTX
Advanced VB: Object Oriented Programming - Controls
robertbenard
 
PPTX
Advanced VB: Object Oriented Programming - DLLs
robertbenard
 
PPTX
Advanced VB: Review of the basics
robertbenard
 
PPTX
Advanced VB: Review of the basics
robertbenard
 
PPTX
Copyright Basics
robertbenard
 
PDF
Cascading Style Sheets in Dreamweaver
robertbenard
 
PPTX
Performance Assessment Task
robertbenard
 
PPT
WIDS Jeopardy
robertbenard
 
PPT
Wids Model
robertbenard
 
PPT
Lesson 2
robertbenard
 
PPT
Lists, formatting, and images
robertbenard
 
PPT
Lesson 7
robertbenard
 
PPT
Lesson 6
robertbenard
 
PPT
Lesson 5
robertbenard
 
PPT
Lesson 4
robertbenard
 
PPT
Lesson 3
robertbenard
 
PPT
Lesson 1
robertbenard
 
PPT
Lesson 1
robertbenard
 
Sample
robertbenard
 
Advanced VB: Object Oriented Programming - Controls
robertbenard
 
Advanced VB: Object Oriented Programming - DLLs
robertbenard
 
Advanced VB: Review of the basics
robertbenard
 
Advanced VB: Review of the basics
robertbenard
 
Copyright Basics
robertbenard
 
Cascading Style Sheets in Dreamweaver
robertbenard
 
Performance Assessment Task
robertbenard
 
WIDS Jeopardy
robertbenard
 
Wids Model
robertbenard
 
Lesson 2
robertbenard
 
Lists, formatting, and images
robertbenard
 
Lesson 7
robertbenard
 
Lesson 6
robertbenard
 
Lesson 5
robertbenard
 
Lesson 4
robertbenard
 
Lesson 3
robertbenard
 
Lesson 1
robertbenard
 
Lesson 1
robertbenard
 
Ad

Recently uploaded (20)

PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
Dimensions of Societal Planning in Commonism
StefanMz
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 

Accessing data within VB Applications

  • 1. Accessing Data within Your ApplicationAdvanced Visual Basic
  • 2. OverviewThe management of databases is the number one use of computers today.  A database (or relational database) is a collection of one or more (usually related) tables that has been created with database-management software.  For our course, we will be using Microsoft Access for the database management software.  We can connect our applications to databases using ADO.NET (ActiveX Data Objects .NET).  This technology allows programs to access data seamlessly from multiple, varied, and distant servers.    
  • 3. Wizards vs. ADOOur text and Microsoft recommend the use of database wizards to complete the connections and management of data.  However, there is another way. You can connect to databases in code and be in complete control of what is happening within your application.  This is what I prefer because if I can't see the code to a process, I can't debug it!  Does the wizard have a place in programming?  SURE!  I do not use it at all professionally, but I can see the wizards having a place within small applications.vs.
  • 4. How does ADO work?Connection – This uses a connection string to say how we will connect to data and what format the data is inData Adapter – Converts database code to VB code (to simplify process). …. Populates dataset with dataData Set – Snapshot of data when you read it from the databaseCommand Builder – Allows you to add, edit, delete data
  • 5. Bind Controls?ADO wizard allows you to bind controls. This is a real easy way of displaying information, but does complicate review of data and verification of accuracy. You can bind controls as well using ADO in code, but I find it just as easy to create a process to read and write to the controls.
  • 6. DataGridView ControlThe datagridview control is a very popular method of displaying information in a VB application. You may bind to this control or add/edit items in code.
  • 7. Database InteractionQuestion: Where have you recently seen a database interaction application?
  • 8. Additional InformationFor additional information about these topics, please review your text and the links provided in Blackboard.