.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 : 99
Users Yesterday : 77
Users Last 7 days : 465
Users Last 30 days : 1177
Users This Month : 887
Users This Year : 887
Total Users : 95402
Views Today : 120
Views Yesterday : 79
Views Last 7 days : 530
Views Last 30 days : 1338
Views This Month : 1000
Views This Year : 1000
Total views : 133446
Who's Online : 0