Chapter 15

Accessing Data Using Structured Query Language

What You Will Learn in this Chapter

  • What you need to know to complete this chapter's exercises
  • Learning what a database really is
  • Using the SQL SELECT statement
  • Examining the SQL JOIN statement
  • Using the SQL UPDATE statement
  • Examining the SQL DELETE statement
  • Using the SQL INSERT statement
  • Examining the SQL comment
  • How to execute Queries in SQL Server Code Downloads for this Chapter

The code downloads for this chapter are found at on the Download Code tab. The code is in the 311813 download and individually named according to the names given throughout the chapter.

Most applications manipulate data in some way. Visual Basic 2012 applications often manipulate data that comes from relational databases. To do this, your application needs to interface with relational database software such as Microsoft Access, Microsoft SQL Server, Oracle, or Sybase.

Visual Studio 2012 provides the data access tools and wizards to connect to these databases and retrieve and update their data. In this chapter, you will look at some of these tools and wizards and use them to retrieve data from a database.

The next chapter concentrates on writing code directly, which gives you more flexibility and control than relying on Visual Studio 2012 to create it for you. With practice, writing code will also take less time than working through a wizard.

What You Need to Complete This Chapter's ...

Get Beginning Visual Basic 2012 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.