Cannot be opened because it is version 852. this server supports version 782 and earlier

前端 未结 5 458
旧时难觅i
旧时难觅i 2020-12-03 15:23

I am using Visual Studio 2017 and SQL Server 2014. While attaching a database file to Visual Studio, I get this error:

\"\"

After upgrading the file I used t

5条回答
  •  执笔经年
    2020-12-03 15:50

    If you want that your project generates a SQL Server 2014 Database which you can attach on the client machine,F you have to create an instance of the server on your machine. To do this, open the command line in administrator mode and enter the command "sqllocaldb create v12.0 12.0". This creates a server instance called "v12.0" in version 12.0, SQL Server 2014.

    If the server has not yet been started, the server must be started with the command "sqllocaldb start v12.0".

    Now you have to change your conectionString like this:

    
        
    
    

    Maybe you have put some parameters to your app.config

    
          
            
          
    
    

提交回复
热议问题