Lesson 34

Introduction to Database

Learn the fundamentals of databases and how Visual Basic 2015 uses ADO.NET to build database applications.

34.1 Understanding Databases

In everyday life, we deal with a large amount of data such as names, addresses, financial records, medical data, and business transactions.

For example:

  • Doctors store patient records
  • Businesses manage customers and products
  • Banks handle financial transactions

To manage such data efficiently, we use databases.

In the past, data was stored manually using paper files. Today, databases are managed using computer-based Database Management Systems (DBMS), which are faster and more efficient.

Examples of DBMS:

  • Microsoft SQL Server
  • Oracle
  • Microsoft Access

34.2 Database Programming in Visual Basic

A database system allows you to:

  • Store data
  • Modify data
  • Retrieve data
  • Add, edit, and delete records

However, database systems can be complex for non-technical users. Therefore, we create user-friendly applications using Visual Basic.

Visual Basic 2015 uses ADO.NET to interact with databases.

34.3 Key ADO.NET Components

To build database applications, we use the following objects:

  • SqlConnection → Connect to database
  • DataTable → Store data
  • DataAdapter → Transfer data

These belong to:

System.Data
System.Data.SqlClient

34.4 Preparing Your Project

To create a database application:

  • Create a new project
  • Name it (e.g. Database Project)
  • Set form title (e.g. Contacts)

Then add references:

  • System.Data
  • System.Data.SqlClient

You can enable them via:

Project → Properties → References

Figure 34.1 – Adding References

Build on This Foundation

Continue to VB2026

After learning the basics of checkbox controls in VB2015, move to the newest VB2026 tutorial for a more modern VB.NET learning path.

Explore VB2026 →

Visual Basic Programming

Visual Basic Programming

Use this Top Release book to reinforce your tutorial learning with a more structured guide.

Key Takeaways:
  • Databases manage large structured data
  • DBMS replaces manual data handling
  • Visual Basic uses ADO.NET
  • Core objects: SqlConnection, DataTable, DataAdapter

Next: Connecting to Database

Go to Lesson 35 →