title: Can a binary search be done in a database in SQL?
body: <p>OK. I am using the C# programming language to access a simple database (on Microsoft SQL Server)</p>
  
  <p>Currently, I am using the DataReader object to access the database.
  So here is my question: is it possible to do a binary search (in C#) for a particular piece of data so that i can make the search faster?</p>
  
  <p>Currently, I'm using a simple while loop to search the contents of the database. I believe this is done sequentially.  </p>
  
  <pre><code>while (pReader.Read())
  {
     if ((String)pReader["theData"] == "The_thing_im_searching_for")
     break;
  }
  </code></pre>
  
  <p>So is there any way to do a binary search?</p>