You need a Command Builder Object for the Update.
Let us say you got the data on a DataGridView and wish to make changes from the gridview which must be reflected abck into your database. Make a button for update and use the following code-
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim i As Integer
Dim cmdbuilder As New Odbc.OdbcCommandBuilder(adp)
'adp is an instance of the Data Adapter
'I'm using odbc, you might be using SQLClient
Try
' ds is the dataset, i returns the number of records updated
i = adp.Update(ds, "table name")
MsgBox(i & " records Updated Successfully")
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub You can create an installer for your application. For this, start a new project of type Setup and Deployment.
As for the connection string, you might want to make a 'login' form which is splashed before the application begins which asks for server and database and user credentials (to connect to DB)
Hope it helps