Add password to App config connection string

  • Thread starter Thread starter Booney440
  • Start date Start date
B

Booney440

Guest
I want to add a password to my connection string that opens my Access file which is password protected.

I have done this before in the Form1.cs but cant figure it out in XML



<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="Employee_List.Properties.Settings.Database5ConnectionString"
connectionString= "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\Database5.accdb"
providerName="System.Data.OleDb" />

</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>




Booney440

Continue reading...
 
Back
Top