using Microsoft.Data.SqlClient; namespace DB_Student_Forms { public partial class DB_Student : Form { // Runtime variables string connectionString = @"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=""H:\2026-27\PGV\#DB\kalope-student - forms.mdf"";Integrated Security=True;Connect Timeout=30"; SqlConnection sqlConnection; public DB_Student() { InitializeComponent(); sqlConnection = new SqlConnection(connectionString); } private void DB_Student_Load(object sender, EventArgs e) { sqlConnection.Open(); } } }