Bonjour
j'ai le code suivant
Ma question: Comment on peut tester si la requête "select * from inscription where mot_passe=" & TextBox2.Text & " and adresse=" & TextBox1.Text & " obtenu un ligne ou non
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 Dim MyConnection As SqlConnection MyConnection = New SqlConnection("server=TITANIUM\SQLEXPRESS;database=Application_web;Trusted_Connection=yes") Dim MyCommand As SqlDataAdapter MyCommand = New SqlDataAdapter("select * from inscription where mot_passe=" & TextBox2.Text & " and adresse=" & TextBox1.Text & "", MyConnection) Dim DS As DataSet DS = New DataSet() MyCommand.Fill(DS, "TitleDetails") Dim RowView As DataRowView = DS.Tables("TitleDetails").DefaultView(0)
Merci
Partager