-1

ローカル DB に接続できません。ライブ バージョンでは正常に動作しています。ライブ バージョンは SQL Server 2012 で、テスト環境は SQL Server 2014 Express です。

私は Web Matrix 3 と Visual Studio 2013 デバッガーをプロセスに接続して使用していますが、ほとんどすべてを試しましたか? 問題は接続の問題に関連していると思います。もちろん、Management studio から DB に接続できます。

ここに私の接続文字列があります

  <connectionStrings>
    <add name="ConStrLive" providerName="System.Data.SqlClient" connectionString="Data Source=127.0.0.1;Initial Catalog=lastbilmagasinet_dk;Persist Security Info=True;User ID=lastbilmagasinet;Password=xxxx;Max Pool Size=10000" />
    <add name="ConStrDev" providerName="System.Data.SqlClient" connectionString="Data Source=DVSRV;Initial Catalog=lastbilmagasinet_dk;Persist Security Info=True;User ID=intern;Password=xxxx!;Max Pool Size=10000" />
    <add name="ConStrLB" providerName="System.Data.SqlClient" connectionString="Data Source=127.0.0.1;Initial Catalog=lastbilbasen_dk;Persist Security Info=True;User ID=lastbilbasen;Password=xxxx;Max Pool Size=10000" />
    <add name="ConStrLMBanner" providerName="System.Data.SqlClient" connectionString="Data Source=127.0.0.1;Initial Catalog=lmbanner_dk;Persist Security Info=True;User ID=lmbanner;Password=xxxx;Max Pool Size=10000" />
    <add name="ConStrFragtbasen" providerName="System.Data.SqlClient" connectionString="Data Source=127.0.0.1;Initial Catalog=fragtbasen_dk;Persist Security Info=True;User ID=fragtbasen;Password=xxxx;Max Pool Size=10000" />
    <add name="ConStrTransjob" providerName="System.Data.SqlClient" connectionString="Data Source=127.0.0.1;Initial Catalog=transportjobbasen_dk;Persist Security Info=True;User ID=transportjobbasen;Password=xxxx;Max Pool Size=10000" />
    <add name="ConStrLastbilshow" providerName="System.Data.SqlClient" connectionString="Data Source=127.0.0.1;Initial Catalog=lastbilshow_dk;Persist Security Info=True;User ID=lastbilshow;Password=xxxx;Max Pool Size=10000" />
    <add name="ConStrTruckpadborg" providerName="System.Data.SqlClient" connectionString="Data Source=127.0.0.1;Initial Catalog=truckpadborg_dk;Persist Security Info=True;User ID=truckpadborg;Password=xxxx;Max Pool Size=10000" />
  </connectionStrings>

誰かアイデアはありますか?

4

1 に答える 1

0

問題はデータソースでした。どうやらMSSQLは127.0.0.1またはローカルホストをローカルデータソースとして許可していないか、デフォルトで構成されていた私のものはとにかく許可しませんでした。

したがって、接続文字列のデータソースは WIN-BD4MCUAKPRP\SQLEXPRESS である必要がありました。それからそれは働いた:)

于 2015-02-27T07:46:01.020 に答える