There are so many ways to interface to SQL, it's tough to give an example.
Here is one, using a storedproc to update a value. No data is returned.
Dim con As SqlConnection
Dim cmd As SqlCommand
con = New SqlConnection(ConnectARListOps)
con.Open()
cmd = New SqlCommand("UpdateDiscountGroup", con)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add("@orgID", SqlDbType.Int).Value =
Request.QueryString("id")
cmd.Parameters.Add("@groupID", SqlDbType.Int).Value = txtGroupID.Text
cmd.Parameters.Add("@invoiceID", SqlDbType.Int).Value =
lblInvoiceIDHidden.Text
cmd.ExecuteNonQuery()
con.Close()