title: How to export Sql Server Data to Excel File in C#
body: <p>How can one read sql server data and write it to excel file in C#?
  Do I need to use an external .Net library, or is it just OK using Visual Studio itself?</p>
  
  <p>Any example and link will be well appreciated..</p>
  
  <p>Note: Please send examples for <strong>Winforms</strong>, <strong>not asp.net</strong></p>