title: Can't get SQL Server Print message with PHP PDO
body: <p>I'm using PDO (dblib driver) to call a SQL Server stored procedure. When it errors, it uses the PRINT  to generate a return message. The issue is that I can't get the message with errorInfo function. The result is empty and the rowcount also returns -1.</p>
  
  <p>For example, When I run the stored procedure in sql server management studio:</p>
  
  <pre><code>CALL x_prodcedure 1,2
  </code></pre>
  
  <p>It outputs (not a rowset): <code>Invalid ID/data</code></p>
  
  <p>When I make the same call in php, no rowset data is found and errorinfo returns:</p>
  
  <pre><code>Array
  (
    [0] =&gt; 00000
    [1] =&gt; 0
    [2] =&gt; (null) [0] (severity 0) [(null)]
    [3] =&gt; 0
    [4] =&gt; 0
  )
  </code></pre>
  
  <p>Not sure which other functions I can use to get the "Invalid ID/data" message</p>