title: How to store dataset row value as string?
body: <p>I have executed SQLquery using powershell and i would like to store the result in log file.</p>
  
  <pre><code>    $SelectQuery = "SELECT [$columnName] FROM [$DatabaseName].[dbo].[$TableName];"
      $Qresult= invoke-sqlcmd -query $SelectQuery -ServerInstance $srvInstance
      Log-Write "$Qresult"
  </code></pre>
  
  <p>(Log-write is a function which will add the contents to logfile)
  But logfile shows as "System.Data.DataRow " which means $Qresult is not converted as string properly.</p>
  
  <p>How to convert it into string and store in log file?</p>