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
SELECTstatement - Examining the SQL
JOINstatement - Using the SQL
UPDATEstatement - Examining the SQL
DELETEstatement - Using the SQL
INSERTstatement - 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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access