title: QSqlQuery Selects Deleted Table
body: <p>I have a QT application and I am showing the user some data from ms sql database which is related to selected ID from comboBox object. My problem is, I've deleted all my tables on my ms sql server but my qt application still finds tables. Here is my sample code :</p>
  <pre><code>QString query = 'SELECT Date FROM [dbo].[Parametre] WHERE id=';
  QString selected_item = this-&gt;ui-&gt;comboBox-&gt;currentText();
  query.append(selected_item);
  QSqlQuery qry;
  
  if(qry.exec(query))
  {
  this-&gt;listWidget-&gt;addItem-&gt;qry.value(0).toString();
  }
  else
  {
  qDebug()&lt;&lt;qry.lastError();
  }
  </code></pre>
  <p>There's no valid table in my ms sql database but it still writes deleted Date's on my listWidget object. My question is what causes this problem and how can I solve this?</p>