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
Wrox.com Code Downloads for this Chapter
The wrox.com code downloads for this chapter are found at www.wrox.com/remtitle.cgi?isbn=1118311813 on the Download Code tab. The code is in the 311813 C15.zip 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.