❔ Connecting to a local DB
Packages Used:
is thrown at the using statement so it doesn't even connect.
I published my local database using the SQL Server Database Project as a template and i'm able to query it through the SQL Server Object Explorer. The connection string I'm using was the one retrieved from the properties of the database.


4 Replies
In the connection string, change
Trust Server Certificate to TrustServerCertificate
Also Multi Subnet Failover to MultiSubnetFailoverRevolved!
The spaces for
TrustServerCertificate, ApplicationIntent, and MultiSubnutFailover all needed to be removed.
In my second photo is there a reason why the connection strings don't have the same keywords as https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnection.connectionstring?view=dotnet-plat-ext-7.0 ?SqlConnection.ConnectionString Property (System.Data.SqlClient)
Gets or sets the string used to open a SQL Server database.
Sorry, I'm not sure what are you referring to 😅
Was this issue resolved? If so, run
/close - otherwise I will mark this as stale and this post will be archived until there is new activity.