SlideShare a Scribd company logo
1 of 8
Accessing Data within Your Application Advanced Visual Basic
Overview The 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. ADO Our 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 in Data Adapter – Converts database code to VB code (to simplify process). …. Populates dataset with data Data Set – Snapshot of data when you read it from the database Command 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 Control The 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 Interaction Question:  Where have you recently seen a database interaction application?
Additional Information For additional information about these topics, please review your text and the links provided in Blackboard.

More Related Content

What's hot

Ado.net entity framework_4.0
Ado.net entity framework_4.0Ado.net entity framework_4.0
Ado.net entity framework_4.0
Rishu Mehra
 

What's hot (18)

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

Similar to Accessing data within VB Applications

1 introduction
1   introduction1   introduction
1 introduction
Ngeam Soly
 
Data Virtualization Primer -
Data Virtualization Primer -Data Virtualization Primer -
Data Virtualization Primer -
Kenneth Peeples
 
Is2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_introIs2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_intro
dannygriff1
 
My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!
rommel_gagasa
 

Similar to Accessing data within VB Applications (20)

Visual Basic.Net & Ado.Net
Visual Basic.Net & Ado.NetVisual Basic.Net & Ado.Net
Visual Basic.Net & Ado.Net
 
ASP.NET Unit-3.pdf
ASP.NET Unit-3.pdfASP.NET Unit-3.pdf
ASP.NET Unit-3.pdf
 
PATTERNS07 - Data Representation in C#
PATTERNS07 - Data Representation in C#PATTERNS07 - Data Representation in C#
PATTERNS07 - Data Representation in C#
 
1 introduction
1   introduction1   introduction
1 introduction
 
dvprimer-architecture
dvprimer-architecturedvprimer-architecture
dvprimer-architecture
 
Ado
AdoAdo
Ado
 
PPT temp.pptx
PPT temp.pptxPPT temp.pptx
PPT temp.pptx
 
Data Virtualization Primer -
Data Virtualization Primer -Data Virtualization Primer -
Data Virtualization Primer -
 
dvprimer-concepts
dvprimer-conceptsdvprimer-concepts
dvprimer-concepts
 
Speed up data preparation for ML pipelines on AWS
Speed up data preparation for ML pipelines on AWSSpeed up data preparation for ML pipelines on AWS
Speed up data preparation for ML pipelines on AWS
 
Programming is Fun with ASP.NET MVC
Programming is Fun with ASP.NET MVCProgramming is Fun with ASP.NET MVC
Programming is Fun with ASP.NET MVC
 
Is2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_introIs2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_intro
 
Asp.net interview questions
Asp.net interview questionsAsp.net interview questions
Asp.net interview questions
 
Data vault what's Next: Part 2
Data vault what's Next: Part 2Data vault what's Next: Part 2
Data vault what's Next: Part 2
 
Window programming
Window programmingWindow programming
Window programming
 
Access & SharePoint
Access & SharePointAccess & SharePoint
Access & SharePoint
 
SOA Summit 2014
SOA Summit 2014SOA Summit 2014
SOA Summit 2014
 
Database Basics Taac 2005
Database Basics Taac 2005Database Basics Taac 2005
Database Basics Taac 2005
 
Project seminar
Project seminarProject seminar
Project seminar
 
My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!
 

More from robertbenard (20)

Sample
SampleSample
Sample
 
Xampe
XampeXampe
Xampe
 
Advanced VB: Object Oriented Programming - Controls
Advanced VB: Object Oriented Programming - ControlsAdvanced VB: Object Oriented Programming - Controls
Advanced VB: Object Oriented Programming - Controls
 
Advanced VB: Object Oriented Programming - DLLs
Advanced VB: Object Oriented Programming - DLLsAdvanced VB: Object Oriented Programming - DLLs
Advanced VB: Object Oriented Programming - DLLs
 
Advanced VB: Review of the basics
Advanced VB: Review of the basicsAdvanced VB: Review of the basics
Advanced VB: Review of the basics
 
Advanced VB: Review of the basics
Advanced VB: Review of the basicsAdvanced VB: Review of the basics
Advanced VB: Review of the basics
 
Copyright Basics
Copyright BasicsCopyright Basics
Copyright Basics
 
Cascading Style Sheets in Dreamweaver
Cascading Style Sheets in DreamweaverCascading Style Sheets in Dreamweaver
Cascading Style Sheets in Dreamweaver
 
Performance Assessment Task
Performance Assessment TaskPerformance Assessment Task
Performance Assessment Task
 
WIDS Jeopardy
WIDS JeopardyWIDS Jeopardy
WIDS Jeopardy
 
Wids Model
Wids ModelWids Model
Wids Model
 
Lesson 2
Lesson 2Lesson 2
Lesson 2
 
Lists, formatting, and images
Lists, formatting, and imagesLists, formatting, and images
Lists, formatting, and images
 
Lesson 7
Lesson 7Lesson 7
Lesson 7
 
Lesson 6
Lesson 6Lesson 6
Lesson 6
 
Lesson 5
Lesson 5Lesson 5
Lesson 5
 
Lesson 4
Lesson 4Lesson 4
Lesson 4
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
 
Lesson 1
Lesson 1Lesson 1
Lesson 1
 
Lesson 1
Lesson 1Lesson 1
Lesson 1
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Accessing data within VB Applications

  • 1. Accessing Data within Your Application Advanced Visual Basic
  • 2. Overview The 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. ADO Our 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 in Data Adapter – Converts database code to VB code (to simplify process). …. Populates dataset with data Data Set – Snapshot of data when you read it from the database Command 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 Control The 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 Interaction Question: Where have you recently seen a database interaction application?
  • 8. Additional Information For additional information about these topics, please review your text and the links provided in Blackboard.