Probleme d update avec sql express
bonjour,
je suis débutant en sql et j'aurais besoin d'aide
je me connect à une base sql comme ceci:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
monadapteur = New SqlDataAdapter
'on selectionne la connextion
maconextion = New SqlConnection(nom_connection)
'on l'ouvre
maconextion.Open()
'on créer une commande
macommande = maconextion.CreateCommand()
'on choisie une commande procédure stocké
macommande.CommandType = CommandType.StoredProcedure
'elle se nome Planning de fabrication
macommande.CommandText = "planning de fabrication"
monadapteur.SelectCommand = macommande
'création de la base en mémoire
mondataset = New DataSet
monadapteur.Fill(mondataset, "PlanningDeFabrication")
RemplirGridViews(mondataset)
maconextion.close
Private Sub RemplirGridViews(ByVal mondataset As DataSet)
DataGridbase.DataSource = mondataset.Tables("PlanningDeFabrication")
end sub |
Jusque là tout est ok mais je ne sais pas faire l'inverse c'est a dire updater
ma base sql en fonction de ma datagridview
Quelqu'un pourrez t il m'aider?