title: OPENQUERY syntax issue SQL Server 2012
body: <p>I have a function that returns a table that will need to be called remotely. Since this functionality is not supported by SQL at the moment, I will need to utilize <code>OPENQUERY</code> to do the following </p>
  
  <pre><code>OPENQUERY([Linked_Server],'Query')
  </code></pre>
  
  <p>However, I keep getting a syntax error when I put in the ip address for the linked server. Linked server is setup properly from the looks of it. I am getting the following error:</p>
  
  <blockquote>
    <p>Msg 156, Level 15, State 1, Line 1<br>
    Incorrect syntax near the keyword 'OPENQUERY'.</p>
  </blockquote>
  
  <p>The script is:</p>
  
  <pre><code>OPENQUERY('NN.NNN.N.NN','SELECT * FROM dbo.DBarBillers')
  </code></pre>
  
  <p>(where N's are the digits of the defined linked server's IP address).</p>
  
  <p>Intellisense is putting the red line under <code>OPENQUERY</code> and the linked server argument</p>
  
  <p>I have tried unquoting the ip address, and bracing it instead of quoting and all are yielding errors. Thoughts?</p>