title: Parameterized oracle query using oledb
body: <p>Just wanted to verify if this is the correct syntax for performing a parameterized query in oracle using oledb:</p>
  
  <pre><code>OleDbCommand command = new OleDbCommand("SELECT DocumentName FROM Documents WHERE DocID = ?", connection);
  command.Parameters.AddWithValue("@docid", DocIdTextBox.Text.Trim()); 
  command.ExecuteReader();
  using (OleDbDataReader reader = command.ExecuteReader())
  {
      if (reader.HasRows)
      {
          reader.Read();
          string docName = Convert.ToString(reader["DocumentName"]);
      }   
  }
  </code></pre>