Confusion concerning OleDbCommand
<p>I know that to instantiate a new OLEDbCommand object you do this:</p>

<pre><code>OleDbCommand command = new OleDbCommand(queryString, connection);
</code></pre>

<p>However, I am confused as to what this line of code is doing:</p>

<pre><code>OleDbCommand cmd = aConnection.CreateCommand();
</code></pre>

<p>I know that aConnection is an OleDbConnection object which was instantiated earlier in the code. </p>

<p>From the MSDN Library I know that CreateCommand() is an OdbcCommand object associated with the OdbcConnection.  However, the Library doesn't really go any further to explain its purpose.</p>

<p>Even though I know what the individual components are, I am unsure of what is happening here.  Is cmd an OleDbCommand object that is being instantiated in order to be able to use SQL commands?  I infer this because further on in the code there is the following:</p>

<pre><code>cmd.CommandText = "SELECT * FROM Team where typeOfSport = '" + typeOfSport + "'";
</code></pre>
