Written by: Biniam Asnake
Assuming you have already took the pleasure of creating a Visual Basic Windows Application and you have a database in SQL Server. For this case let’s call the database “Industry”
1st. Create app.config file (By right clicking on your project’s name in Solution Explorer)
2nd. Paste the following code
<connectionStrings>
<add name="connectionString"
connectionString="SERVER=(local);; DATABASE = Industry; Integrated Security=True;
Trusted_Connection= Yes;"
providerName="System.Data.SqlClient" />
</connectionStrings>