Getting a statabase query returned as string in c#
<p>I am working with a dbf database. I need to query it to get information back in string format. The dbf file is set up as follows:</p>

<pre><code>Student Name  Student Number  Student Description
HelloWorld      123456789          Present
WorldHello      987654321          Absent
</code></pre>

<p>Here is the code i have so far:</p>

<pre><code>    OleDbCommand command;
    OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0; Data Source = " + dbfPath + ";Extended Properties=dBase III");
    command = new OleDbCommand("SELECT STUDENTNAME, STUDENTNUMBER, STUDENTDESCRIPTION" + " FROM " + DbfFile + " WHERE " + STUDENTNAME='HelloWorld', conn);
</code></pre>

<p>Now i want to get the result as a comma seperated string as follows:</p>

<p>HelloWorld,123456789,Present</p>

<p>How can i do this?</p>
