title: How to import text file and save data into database?
body: <p>I have this project:</p>
  
  <ol>
  <li>Import a <code>.txt</code> file</li>
  <li>Connect to a SQL Server database</li>
  <li>Transfer all data into the database</li>
  </ol>
  
  <p>The text file is divided by tab in four fields so as the database.</p>
  
  <p>I've done the first step using a rich text box and saving all the data on a string. My idea is to split the string every line and save it on an array but then: How do I split every row so I can save the fields properly? How do I connect a database on SQL Server to my project on C#?</p>