Setting Up the Connection String
A connection string contains information about how to connect to the database. In your case, the connection string is:
<add name="DbConnection" connectionString="Data Source=.;Initial Catalog=BH_Report;Integrated Security=true;" providerName="System.Data.SqlClient"/>
- Data Source: The server where the database is hosted. A dot (
.
) refers to the local server. - Initial Catalog: The name of the database you want to connect to (e.g.,
BH_Report
). - Integrated Security: When set to
true
, it uses Windows Authentication.
Leave a comment