SQL ERROR [08001]
<p>I am getting an error on SQL Server 2012. Whenever I am trying to connect with with the database, I get this error:</p>

<blockquote>
  <p>Cannot connect to the database.   </p>
  
  <p>ERROR [08001] [Microsoft][ODBC SQL Server Driver][DBNETLIB] SQL Serverdoes not exist or access denied. </p>
  
  <p>ERROR [01000] [Microsoft][ODBC SQL Server
  Driver][DBNETLIB]ConnectionOpen (Connect()).</p>
</blockquote>

<p><a href="https://i.stack.imgur.com/dEaOG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dEaOG.png" alt="enter image description here"></a></p>

<p>The server is localhost and authorization have also done with the correct username and password but still it is the same result, I have also tried the Windows Authorization </p>

<p>Does anyone know any solution for this error?</p>