12 Accessing Data Using Structured Query Language
WHAT YOU WILL LEARN IN THIS CHAPTER:
- What you need to know to complete this chapter’s exercises
- 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
WROX.COM CODE DOWNLOADS FOR THIS CHAPTER
The wrox.com code downloads for this chapter are found at www.wrox.com/begvisualbasic2015 on the Download Code tab. The code is in the 092117 C12.zip
download and individually named according to the names given throughout the chapter.
Most applications manipulate data in some way. Visual Basic 2015 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 2015 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 2015 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 EXERCISES
Get Beginning Visual Basic 2015 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.