title: Cannot be opened because it is version 852. this server supports version 782 and earlier
body: <p>I am using Visual Studio 2017 and SQL Server 2014. While attaching a database file to Visual Studio, I get this error:</p>
  
  <p>"<a href="https://i.stack.imgur.com/VRLjS.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VRLjS.png" alt="Adding database connection"></a>"</p>
  
  <p>After upgrading the file I used this connection string</p>
  
  <pre><code>&lt;connectionStrings&gt;
      &lt;add name="con" 
           connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\binaaelmamorra.mdf;Integrated Security=True;Connect Timeout=30"/&gt;
  &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>It's working fine on my machine, but on the client machine, an error pops up saying </p>
  
  <blockquote>
    <p>Cannot be opened because it is version 852. This server supports version 782 and earlier</p>
  </blockquote>
  
  <p>Though I installed SQL Server 2016 local DB on the client side, I still can't get rid of it.  </p>
  
  <p>My second question is: what is the current instance of SQL Server to which the database file is not compatible?</p>
  
  <p><a href="https://i.stack.imgur.com/W6wpb.png" rel="noreferrer"><img src="https://i.stack.imgur.com/W6wpb.png" alt="Pic 1"></a>
  <a href="https://i.stack.imgur.com/lbK7F.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lbK7F.png" alt="enter image description here"></a></p>