How to allow IIS to use local database from ASP.NET MVC project?

后端 未结 4 1032
南笙
南笙 2020-12-05 16:31

I\'m going to be demoing a ASP.NET MVC website on a local network. This application has a connection to a database:


    

        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-05 16:53

    When there are multiple version of SQL Server localDB installed in a machine, this error is very common.

    Try to use (localdb)\mssqllocaldb, as a common server name to connect to the LocalDB automatic instance, instead of "v11.0" or "v12.0".

    The above automatic localdb instance, have a default name across all the version and avoid conflict between name & version.

    Important: When updating the localdb to new version, remember the database created with an older version does not work with the newer.

提交回复
热议问题