.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 : 18
Users Yesterday : 34
Users Last 7 days : 185
Users Last 30 days : 817
Users This Month : 364
Users This Year : 2826
Total Users : 97341
Views Today : 26
Views Yesterday : 40
Views Last 7 days : 252
Views Last 30 days : 1048
Views This Month : 487
Views This Year : 3409
Total views : 135855
Who's Online : 0