.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 : 6
Users Yesterday : 47
Users Last 7 days : 282
Users Last 30 days : 907
Users This Month : 579
Users This Year : 5693
Total Users : 100208
Views Today : 7
Views Yesterday : 51
Views Last 7 days : 328
Views Last 30 days : 1066
Views This Month : 664
Views This Year : 6828
Total views : 139274
Who's Online : 1