title: convert sqlconnection to oledbconnection c#
body: <p>I am using C# to connect to my database with sqlconnection. 
  But now I want to connect using OledbConnection.
  I'm using this instruction:</p>
  
  <pre><code> _dbSchemaInfo.Connection.ConnectionString = ViewModelLocator.Connection.ConnectionString;
  </code></pre>
  
  <p>and I have this Error:</p>
  
  <blockquote>
    <p>Un fournisseur OLE DB n'était pas spécifié dans ConnectionString. Par exemple, 'Provider=SQLOLEDB;'.</p>
  </blockquote>
  
  <p>My ConnectionString:</p>
  
  <blockquote>
    <p>Data Source=MOHAMEDSADEK-PC\MSSQLSERVER12;Initial Catalog=TEST_LAUNCHER;Integrated Security=SSPI;Persist Security Info=False</p>
  </blockquote>
  
  <p>My question is "How Can I convert sqlconnection to OledbConnection ?</p>