.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 : 28
Users Yesterday : 11
Users Last 7 days : 213
Users Last 30 days : 823
Users This Month : 227
Users This Year : 2689
Total Users : 97204
Views Today : 29
Views Yesterday : 12
Views Last 7 days : 268
Views Last 30 days : 1033
Views This Month : 289
Views This Year : 3211
Total views : 135657
Who's Online : 0