title: How to use a DSN file in a C# application?
body: <p>This is my old code. </p>
  
  <pre><code>conn = new System.Data.Odbc.OdbcConnection();
  conn.ConnectionString = @"DSN=dBase Files";
  </code></pre>
  
  <p>It throws an Error: (I think my old code might still work on 32 bit machines, but I am on 64 now)</p>
  
  <pre><code>"[Error] [IM002] [Microsoft] [ODBC Driver Manager] Data source name not found and no default driver specified"
  </code></pre>
  
  <p>All my searches told me to use SysWow64/odbcad32.exe to create a .DSN file.  Now I created the DSN file, How can I modify this line,  <code>conn.ConnectionString = @"DSN=dBase Files";</code>,  to point to the .DSN file I saved on disk?</p>