Forum Discussion
Lee Taylor
Nov 30, 2021Copper Contributor
SQL Server Authentication
I am developing a new windows console app using .Net Core 6 and I have added a reference to System.Data.SQLServer (version 4.8.3) when I go to connect to my Azure SQL database I supply the same connection string that I would when connecting with .NET Framework, however I get an error saying the the authentication parameter is not recognized. Why would this be different? Is there a different process?
The parameter is
Authentication='Active Directory Integrated'
2 Replies
Sort By
- WilliamXifarasCopper Contributor
You should get the connection string from Azure.
See section Get ADO.NET connection information.
https://docs.microsoft.com/en-us/azure/azure-sql/database/connect-query-content-reference-guide
- Lee TaylorCopper ContributorSystem.Data.SQLClient is ADO.NET and that is the connection string that I was referring to, however, Microsoft.Data.SQLClient used in .NET Core is different.