SqlConnection Error if EXE is executed from network path

前端 未结 4 1669
春和景丽
春和景丽 2021-02-07 03:58

First of all: everything you will read in this post happens only if Windows 10 April 2018 update is installed. No problem be

4条回答
  •  逝去的感伤
    2021-02-07 04:25

    I have same problem with some application write in "Rad Studio 10.2"

    I find a solution for me, i change my connection string by deleting the parameter "Network Library = dbmssocn"

    I change this :

    Provider=SQLOLEDB.1;Password=MyPassword;Persist Security Info=True;User ID=MyUser;Initial Catalog=MyDb;Data Source=MyServer;Network Library=dbmssocn;
    

    To this :

    Provider=SQLOLEDB.1;Password=MyPassword;Persist Security Info=True;User ID=MyUser;Initial Catalog=MyDb;Data Source=MyServer
    

    Now all work fine !

提交回复
热议问题