title: SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]MAX_PROVS: Connection string is not valid [87]. 1
body: <p>I am unable to connect to my MS SQL Server 2019 on my local machine. I am using PHP Version 7.3.28
  error statement says &quot;SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]MAX_PROVS: Connection string is not valid [87]. 1&quot;.</p>
  <p>The code is as below:-</p>
  <pre><code>&lt;?php
  try  
  {  
  $conn = new PDO(&quot;sqlsrv:server=\DESKTOP-BCN88UC\SQLEXPRESS,1433; Database=test;&quot;, &quot;\DESKTOP-BCN88UC\JK&quot;, &quot;&quot;);
  
  $conn-&gt;setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );  
  }  
  catch(Exception $e)  
  {   
  die( print_r( $e-&gt;getMessage() ) );   
  }  
  ?&gt; 
  </code></pre>
  <p>Please help me in connecting to the server.</p>