Skip to main content

Introducing Commands

  • Chapter
Beginning VB .NET 1.1 Databases
  • 347 Accesses

Summary

In this chapter, you learned the following:

  • What an ADO.NET command is and does

  • How to create a command

  • How to associate a command with a connection

  • How to set command text

  • When to use the different command execution methods

  • How to use ExecuteScalar for queries that return single values

  • How to use ExecuteReader to process result sets

  • How to use ExecuteNonQuery for DML and DDL

  • How to create databases and tables using ExecuteNonQuery

  • What command parameters are and how to use them

  • How to use commands, specifically OleDbCommand and OdbcCommand, with other data providers

In the next chapter, you’ll look in more depth at data readers, which you created in some of the examples in this chapter with a call to ExecuteReader. Data readers give you the results of a SQL query that returns more than one item of data.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Dan Maharry, James Huddleston, Ranga Raghuram, Scott Allen, Syed Fahad Gilani, Jacob Hammer Pedersen, Jon Reid

About this chapter

Cite this chapter

(2005). Introducing Commands. In: Beginning VB .NET 1.1 Databases. Apress. https://doi.org/10.1007/978-1-4302-0010-9_6

Download citation

Publish with us

Policies and ethics