I have a very unusual bug when trying to connect to a live Azure database via Visual Studio 2022 (17.5.0) using the following connection properties:
- Encryption = true
- Trust Server Certificate = true
The target database connection (read-only) is completely fine when using the Publish Database feature. However, when clicking the Edit > Advanced, Visual Studio automatically sets the Trust Server Certificate to false. The Encryption is still set to true.
I checked the same scenario using a different machine (lower VS version), but it doesn't override the connection property.