MSSQL Error 'The underlying provider failed on Open'

前端 未结 30 2985
时光取名叫无心
时光取名叫无心 2020-11-22 09:51

I was using an .mdf for connecting to a database and entityClient. Now I want to change the connection string so that there will be no

30条回答
  •  余生分开走
    2020-11-22 10:18

    I found the problem was that I had the server path within the connection string in one of these variants:

    SERVER\SQLEXPRESS
    SERVER
    

    When really I should have:

    .\SQLEXPRESS
    

    For some reason I got the error whenever it had difficulty locating the instance of SQL.

提交回复
热议问题