This documentation is archived and is not being maintained.

Video How to: Writing Queries in Visual Basic

Visual Studio 2008

Write queriesVideo How To

Authors: Kathleen McGrath, Harry Miller, Sahnny Johnson, Mick Alberts, Microsoft Corporation

Applies to: Microsoft Visual Basic 2008

Length: 00:04:45 | Size: 21.5 MB | Type: WMV file


Watch the video

Download the video and transcript

Read the step-by-step article

LINQ makes a query a first-class language construct in Visual Basic. You can write queries against strongly typed collections of objects by using language keywords and familiar operators. You do not have to learn a different query language for each type of data source: SQL databases, XML documents, various Web services, and so on.

This video shows you the Visual Basic 2008 language features that enable you to write LINQ query expressions. The following tasks are included in the process:

  • How to create an in-memory data source.

  • How to create the query.

  • How to execute the query.

  • How to modify the query.

The Visual Basic Help includes the code and the steps that are demonstrated in this video. See Walkthrough: Writing Queries in Visual Basic.