Junior ADO.NET

What is the role of the ConnectionString?

The ConnectionString contains information required to connect to the database, such as

the database server, database name, credentials, and other configurations.

Example:

string connectionString = "Data Source=server_name;Initial

Catalog=database_name;User ID=user_name;Password=password;";

More from ADO.NET Core Tutorial

All questions for this course