title: Create .DBF file from SQL table records
body: <p>I want to create a <code>.DBF</code> file from SQL table records.</p>
  
  <p>Such as if there is a table named <code>CountryMaster</code> in SQL and it has 5 columns: </p>
  
  <ol>
  <li>ID int identity(1,1)</li>
  <li>Name varchar(100)</li>
  <li>Details varchar(200)</li>
  <li>Status bit</li>
  <li>CreatedDate datetime</li>
  </ol>
  
  <p>And it has 100 rows.</p>
  
  <p>How can I export these records with headers in <code>.DBF</code> file from C#?</p>
  
  <p><strong>NOTE:</strong> Created <code>.DBF</code> file size must be very compact.</p>