I am doing fyp with rfid student attendance system currently. And, I face the problem on saving the database's data.This is the code that i write below:
Dim sqladapter As SqlClient.SqlDataAdapter = New SqlClient.SqlDataAdapter("select * from table_0", conn)
sqladapter.Fill(ds, "table_0")
Dim sqladapter_1 As SqlClient.SqlDataAdapter = New SqlClient.SqlDataAdapter("select * from Table_1", conn_1)
sqladapter_1.Fill(sa, "Table_1")
sa.Tables(0).Rows(sa.Tables(0).Rows.Count - 1).Item(0) = ds.Tables(0).Rows(i).Item(0)
sa.Tables(0).Rows(sa.Tables(0).Rows.Count - 1).Item(1) = ds.Tables(0).Rows(i).Item(1)
sa.Tables(0).Rows(sa.Tables(0).Rows.Count - 1).Item(2) = ds.Tables(0).Rows(i).Item(2)
flow = True
DataGridView1.DataSource = sa.Tables(0)
in which sa is student attendance and ds is student list. What code should i added to save the attendance permanently?