Now that we’ve examined the major features of the SqlCommand, SqlDataReader, and SqlParameter classes, let’s examine the properties and methods of each object.
Table 4-1 lists the properties of the SqlCommand class that you’re most likely to use.
Table 4-1. Commonly Used Properties of the SqlCommand Class
The text of the query that you want to execute.
Time (in seconds) that the adapter will wait for the query to execute before timing out. (Default = 30 seconds.)
Specifies the type of query to execute. (Default = Text.)
The connection to your data ...