I created a working Data-Based Database. I can also use this db with the DataGridView.
But how can I create a connection to the database with C#? I searched already before but nothing worked for me.
In my App.config is also
<connectionStrings>
<add name="make_it_server_verwaltung.Properties.Settings.ServerlistConnectionString"
connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\Serverlist.mdf;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
So how can I create a connection to my db and how can I add/delete/change/read my database over C#?
Thank you ^^
ConfigurationManager.ConnectionStrings["name"];, I believe