0
I have a C# application I made in Visual Studio. This application connects to an Sql Server database. I would like to put on my login an option in list form to choose another bank if I have more than one in my application. For example: a Ctrl+c Ctrl+v from the same bank but from two different companies. I’m using the app.config with the string similar to this one
<connectionStrings>
<add name="MinhaStringDeConexao"
connectionString="Data Source=(local); Initial Catalog=MinhaDb; Integrated Security=SSPI;"
providerName="SqlClient"/>
</connectionStrings>
How do I put more connections in there and how do I recover them in my main form after login. Thanks for the help.
only put another line inside connectionStrings Uai, then access each connection by attribute name
– Rovann Linhalis