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

PPTX
Aspmvc
PDF
Web Programming - 10 JavaScript
PPTX
Building N Tier Applications With Entity Framework Services 2010
PDF
Projects
PPTX
SAP BusinessObjects Web Intelligence Report
PPTX
Power apps portals are now generally available
PPTX
Power Automate (MS Flow) basics, Behind the Scenes, Errors and Troubleshooting
PPTX
Real World API Design Using The Entity Framework Services
Aspmvc
Web Programming - 10 JavaScript
Building N Tier Applications With Entity Framework Services 2010
Projects
SAP BusinessObjects Web Intelligence Report
Power apps portals are now generally available
Power Automate (MS Flow) basics, Behind the Scenes, Errors and Troubleshooting
Real World API Design Using The Entity Framework Services

What's hot (18)

PPT
Cloud presentation
PPTX
Ado.net entity framework_4.0
PDF
Democratization of Data @Indix
PPTX
Microsoft PowerApps
PDF
Portfolio Npf Ms Batch Loader
PPTX
Microsoft Flow - Easy Desktop Integration
PPTX
Ibm watson
PPTX
Introduction to Microsoft Flow : Power to the People (Serge Luca, Isabelle Va...
PPTX
Cloud Design Patterns
PDF
CQRS : Introduction
PPTX
Microsoft Azure News - June 2016
PPTX
Putting Kit back in SDK
PDF
CI/DC in MLOps by J.B. Hunt
PPTX
Improve your Dynamics 365 usage with AI
DOC
File uploading through paperclip in rails 3.x
PPTX
Pillars of great Azure Architecture
PDF
Analyzing Mixpanel Data with SQL
PDF
Live wireframe data mashups overview brochure
Cloud presentation
Ado.net entity framework_4.0
Democratization of Data @Indix
Microsoft PowerApps
Portfolio Npf Ms Batch Loader
Microsoft Flow - Easy Desktop Integration
Ibm watson
Introduction to Microsoft Flow : Power to the People (Serge Luca, Isabelle Va...
Cloud Design Patterns
CQRS : Introduction
Microsoft Azure News - June 2016
Putting Kit back in SDK
CI/DC in MLOps by J.B. Hunt
Improve your Dynamics 365 usage with AI
File uploading through paperclip in rails 3.x
Pillars of great Azure Architecture
Analyzing Mixpanel Data with SQL
Live wireframe data mashups overview brochure
Ad

Similar to Accessing data within VB Applications (20)

PPTX
Is2215 lecture7 lecturer_ado_intro
PDF
Ado.Net
PPT
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
DOC
Class 1
PPS
Vb.net session 05
PDF
Visual basic databases
PDF
LECTURE MICROSOFT ACCESS INFORMATION TECHNOLOGY
PPT
PDF
Database Programming With Visual Basic Net And Adonet Tips Tutorials And Code...
PPT
Session 7 Bai 7 ve winform
PPS
Ado.net session01
PDF
Database Programming with Visual Basic NET and ADO NET Tips Tutorials and Cod...
PPS
Vb net xp_05
PPTX
PPT
ADO.net control
PPTX
Ado .net
PDF
Visual Basic.Net & Ado.Net
DOC
Access database
PPT
2310 b 09
PPT
Pemrograman komputer 9 (database)
Is2215 lecture7 lecturer_ado_intro
Ado.Net
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
Class 1
Vb.net session 05
Visual basic databases
LECTURE MICROSOFT ACCESS INFORMATION TECHNOLOGY
Database Programming With Visual Basic Net And Adonet Tips Tutorials And Code...
Session 7 Bai 7 ve winform
Ado.net session01
Database Programming with Visual Basic NET and ADO NET Tips Tutorials and Cod...
Vb net xp_05
ADO.net control
Ado .net
Visual Basic.Net & Ado.Net
Access database
2310 b 09
Pemrograman komputer 9 (database)
Ad

More from robertbenard (20)

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

Recently uploaded (20)

PPTX
Cell Structure & Organelles in detailed.
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
master seminar digital applications in india
PDF
01-Introduction-to-Information-Management.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Lesson notes of climatology university.
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Institutional Correction lecture only . . .
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Cell Structure & Organelles in detailed.
Abdominal Access Techniques with Prof. Dr. R K Mishra
Final Presentation General Medicine 03-08-2024.pptx
master seminar digital applications in india
01-Introduction-to-Information-Management.pdf
Supply Chain Operations Speaking Notes -ICLT Program
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Insiders guide to clinical Medicine.pdf
Lesson notes of climatology university.
Sports Quiz easy sports quiz sports quiz
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Institutional Correction lecture only . . .
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
TR - Agricultural Crops Production NC III.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf

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.