Can't get information about SQL Server
<p>I am creating some ERS (Error Reporting Service) in my SQL Server 2008 R2. Introducing part of the report should contain some basic information about version of SQL Server, Windows info etc... </p>

<p>I have two queries which work fine on my virtual machine, but at my host machine I have problem with <code>sys.dm_os_windows_info</code>. </p>

<p>This basic query throws the error:</p>

<pre><code>SELECT * 
FROM sys.dm_os_windows_info;
</code></pre>

<p>Error:</p>

<blockquote>
  <p>Msg 208, Level 16, State 1, Line 1<br>
  Invalid object name 'sys.dm_os_windows_info'.</p>
</blockquote>