title: How do get a simple string from a database
body: <p>The following code does not work. There is only 1 row in this table. How do I just get the statement that the sql would return?:</p>
  
  <pre><code>SqlConnection conn = new SqlConnection(connectionStringArg);
  SqlCommand command = new SqlCommand("select applicationname from tbl_settings");
  command.Connection = conn;
  conn.Open();
  string simpleValue = command.ExecuteReader()[0].ToString();
  conn.Close();
  return simpleValue;
  </code></pre>
  
  <p>Okay any help on how to achieve this relatively simple task would be great.</p>