title: In LinqPad, querying Databases in LinqPad 6 and 7
body: <p>In LinqPad 5 the following code example works very well for accessing information for databases which includes information such as Recovery Model, encryption status and other useful information for a DBA.  This is using <strong>Linq to SQL</strong> for the SQL Server Database connection.</p>
  <pre><code>from d in Databases
  select d
  </code></pre>
  <p>*<em>when database connection in LINQPad points to the master database for a SQL server.</em></p>
  <p>However, access to <strong>Databases</strong> does not work in LinqPad 6 or 7.  I have been trying for a while to upgrade my queries that use Databases so I can run them in LinqPad 6+ without success.</p>
  <p>Is there any setting that can be used or an alternate query to accomplish the same results in LinqPad 6 and 7?</p>