.NET7 Preview版で、SQL Serverに接続する場合、デフォルトで暗号化がTrueに設定されるようになったようで、今までの接続文字列では以下のようなエラーが出て、接続出来ない。
"Data Source=<server>;Initial Catalog=<db>;User ID=<ID>;Password=<PWD>"A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 – An internal exception was caught)
これを回避するには、接続文字列に、”encrypt=false“を入れれば良い。
"Data Source=<server>;Initial Catalog=<db>;User ID=<ID>;Password=<PWD>;encrypt=false"この情報を探すのに結構手間取ってしまったので、メモ。
SQL Serverからdotnet ef dbcontext scaffoldしたかっただけなのだけど・・・





Users Today : 10
Users Yesterday : 39
Users Last 7 days : 317
Users Last 30 days : 923
Users This Month : 664
Users This Year : 5778
Total Users : 100293
Views Today : 11
Views Yesterday : 44
Views Last 7 days : 359
Views Last 30 days : 1066
Views This Month : 761
Views This Year : 6925
Total views : 139371
Who's Online : 0