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

Cloud presentation
Cloud presentationCloud presentation
Cloud presentationPyvot
 
Ado.net entity framework_4.0
Ado.net entity framework_4.0Ado.net entity framework_4.0
Ado.net entity framework_4.0Rishu Mehra
 
Democratization of Data @Indix
Democratization of Data @IndixDemocratization of Data @Indix
Democratization of Data @IndixManoj Mahalingam
 
Microsoft PowerApps
Microsoft PowerAppsMicrosoft PowerApps
Microsoft PowerAppsRene Modery
 
Portfolio Npf Ms Batch Loader
Portfolio   Npf Ms Batch LoaderPortfolio   Npf Ms Batch Loader
Portfolio Npf Ms Batch LoaderChris Chubb
 
Microsoft Flow - Easy Desktop Integration
Microsoft Flow - Easy Desktop IntegrationMicrosoft Flow - Easy Desktop Integration
Microsoft Flow - Easy Desktop IntegrationDaniel Toomey
 
Ibm watson
Ibm watsonIbm watson
Ibm watsonVivek Mohan
 
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...serge luca
 
Cloud Design Patterns
Cloud Design PatternsCloud Design Patterns
Cloud Design PatternsKarthikeyan VK
 
CQRS : Introduction
CQRS : IntroductionCQRS : Introduction
CQRS : IntroductionTopu Newaj
 
Microsoft Azure News - June 2016
Microsoft Azure News - June 2016Microsoft Azure News - June 2016
Microsoft Azure News - June 2016Daniel Toomey
 
Putting Kit back in SDK
Putting Kit back in SDKPutting Kit back in SDK
Putting Kit back in SDKdarrelmiller71
 
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. HuntDatabricks
 
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 AINicolas Georgeault
 
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.xAndolasoft Inc
 
Pillars of great Azure Architecture
Pillars of great Azure ArchitecturePillars of great Azure Architecture
Pillars of great Azure ArchitectureKarthikeyan VK
 
Analyzing Mixpanel Data with SQL
Analyzing Mixpanel Data with SQLAnalyzing Mixpanel Data with SQL
Analyzing Mixpanel Data with SQLJanessa Lantz
 
Live wireframe data mashups overview brochure
Live wireframe data mashups overview brochureLive wireframe data mashups overview brochure
Live wireframe data mashups overview brochureNewton Day Uploads
 

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

Visual Basic.Net & Ado.Net
Visual Basic.Net & Ado.NetVisual Basic.Net & Ado.Net
Visual Basic.Net & Ado.NetFaRid Adwa
 
ASP.NET Unit-3.pdf
ASP.NET Unit-3.pdfASP.NET Unit-3.pdf
ASP.NET Unit-3.pdfabiraman7
 
PATTERNS07 - Data Representation in C#
PATTERNS07 - Data Representation in C#PATTERNS07 - Data Representation in C#
PATTERNS07 - Data Representation in C#Michael Heron
 
1 introduction
1   introduction1   introduction
1 introductionNgeam Soly
 
dvprimer-architecture
dvprimer-architecturedvprimer-architecture
dvprimer-architectureKenneth Peeples
 
Data Virtualization Primer -
Data Virtualization Primer -Data Virtualization Primer -
Data Virtualization Primer -Kenneth Peeples
 
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 AWSData Science Milan
 
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 MVCIan Carnaghan
 
Is2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_introIs2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_introdannygriff1
 
Asp.net interview questions
Asp.net interview questionsAsp.net interview questions
Asp.net interview questionsAkhil Mittal
 
Window programming
Window programmingWindow programming
Window programmingPooja Rathee
 
Database Basics Taac 2005
Database Basics Taac 2005Database Basics Taac 2005
Database Basics Taac 2005AmyBlankenship
 
Project seminar
Project seminarProject seminar
Project seminarKuldeep Jain
 
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

Advanced VB: Object Oriented Programming - Controls
Advanced VB: Object Oriented Programming - ControlsAdvanced VB: Object Oriented Programming - Controls
Advanced VB: Object Oriented Programming - Controlsrobertbenard
 
Advanced VB: Object Oriented Programming - DLLs
Advanced VB: Object Oriented Programming - DLLsAdvanced VB: Object Oriented Programming - DLLs
Advanced VB: Object Oriented Programming - DLLsrobertbenard
 
Advanced VB: Review of the basics
Advanced VB: Review of the basicsAdvanced VB: Review of the basics
Advanced VB: Review of the basicsrobertbenard
 
Advanced VB: Review of the basics
Advanced VB: Review of the basicsAdvanced VB: Review of the basics
Advanced VB: Review of the basicsrobertbenard
 
Copyright Basics
Copyright BasicsCopyright Basics
Copyright Basicsrobertbenard
 
Cascading Style Sheets in Dreamweaver
Cascading Style Sheets in DreamweaverCascading Style Sheets in Dreamweaver
Cascading Style Sheets in Dreamweaverrobertbenard
 
Performance Assessment Task
Performance Assessment TaskPerformance Assessment Task
Performance Assessment Taskrobertbenard
 
WIDS Jeopardy
WIDS JeopardyWIDS Jeopardy
WIDS Jeopardyrobertbenard
 
Lists, formatting, and images
Lists, formatting, and imagesLists, formatting, and images
Lists, formatting, and imagesrobertbenard
 

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

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)Dr. Mazin Mohamed alkathiri
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

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.