Chapter 4. Querying Your Database

In Chapter 3, you learned how to connect to a database using the Microsoft ADO.NET SqlConnection class. Now it’s time to learn how to execute queries against your database. In the ADO.NET object model, you execute queries using the SqlCommand class.

In this chapter, I’ll focus first on specific tasks that involve the SqlCommand class. I’ll examine how to execute queries that retrieve results and queries that modify, rather than return, data. We’ll take ...

Get Programming Microsoft® ADO.NET 2.0 Core Reference, 2nd Edition now with O’Reilly online learning.

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