title: Powershell Cannot find type [System.Data.DataTable]
body: <p>I'm attempting to query a Microsoft SQL Server via PowerShell.  I have version 4 installed.</p>
  
  <p>I'm attempting to connect to a Microsoft SQL server database. I've done this before on a different computer.  The first line of the script that worked before is.</p>
  
  <pre><code>$records = New-Object System.Data.DataTable
  </code></pre>
  
  <p>This generates this error</p>
  
  <blockquote>
    <p>Error: New-Object : Cannot find type [System.Data.DataTable]: verify
    that the assembly containing this type is loaded.</p>
  </blockquote>
  
  <p>I think I need something installed which makes the <code>System.Data.DataTable</code> available but I've not been able to figure out what it is.</p>