title: Getting error when trying to use OPENQUERY Msg 7321, Level 16, State 2, Line 1
body: <p>when i run this  query </p>
  
  <pre><code>SELECT *   
      FROM OPENQUERY([XXX], 'SELECT * FROM Database.Table WHERE (MBCONO=650) AND MBCUNO LIKE a%' )
  </code></pre>
  
  <p>Get the Error :</p>
  
  <blockquote>
    <p>OLE DB provider "DB2OLEDB" for linked server "XXX" returned message
    "Token %ÂŸFOR SKIP WITH FETCH ORDER UNION EXCEPT OPTIMIZE SQLSTATE:
    42601, SQLCODE: -104".</p>
  </blockquote>
  
  <p>Msg 7321, Level 16, State 2, Line 1 An error</p>
  
  <blockquote>
    <p>occurred while preparing the query "SELECT * FROM Database.Table WHERE
    (MBCONO=650) AND MBCUNO LIKE a%'" for execution against OLE DB
    provider "DB2OLEDB" for linked server "LAWSON".</p>
  </blockquote>
  
  <p>But when I run the Same query Without  <code>AND MBCUNO LIKE a%</code>  Return Result !! </p>
  
  <p>Any One Can Help Me About This Issue </p>
  
  <p>Thanx </p>