SqlConnection Con
SqlConnection Con
SqlConnection("your_connection_string");
Explanation:
This line creates a connection to the SQL Server database using
a connection string.
Think of it like opening a road to the database so you can send
or receive data.
da.Fill(ds, "Students");
✅ Explanation:
This line fills the ds (DataSet) with data from the "Students"
table of the real database.
So now ds.Tables["Students"] has all the student records.
da.Update(ds, "Students");
✅ Explanation:
This line takes all the changes you made to
ds.Tables["Students"] and updates the actual database with
those changes.