1 year ago

#357555

test-img

Pat B

SQL Server Connection Issues with .NET 6

Does anyone know how to connect to a SQL server forcing NTML with a .NET 6 SqlClient connection string

var cnn = new SqlConnectionStringBuilder()
{
ApplicationIntent = ApplicationIntent.ReadWrite, 
DataSource = "[Server]",
InitialCatalog = "ProjectX", TrustServerCertificate = true
, UserID = "Domain\\UserName", Password = "******************"
};

Reason: Attempting to use an NT account name with SQL Server Authentication.

.net

sql-server

sqlclient

0 Answers

Your Answer

Accepted video resources