
Using (var sqlConnection = new SqlConnection(connectionString)) The corresponding C# code is quite simple: var connectionString = "Server= Database=database-testingmsi6499 User ID=globalSqlAdmin Password=MySecretPassword ") The traditional way to connect to an Azure SQL database from an application in C# is to provide to the SqlConnection constructor a connection string that contains a username and a password. The traditional way: using a secret connection string NET Core and replace the old components.īut first, let's talk about how we used to do that before. 🗨 If you do not have heard about, it is the new data provider for Microsoft SQL Server and Azure SQL Database which supports both. Let's see what this means when querying an Azure SQL Database from some C# code.

In v3.0.0, a new authentication mode Active Directory Default has been released.
