Bonjour à tous,
voilà j'ai un petit problème, lorsque j'essaie de d'exécuter mon application je reçois le message d'erreur suivant: Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near the keyword 'where'.

Quelqu'un pourrait-il jeter un coup d'oeil svp?
Bien à vous.
Voici ma requête:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
Sub Button1_Click(sender As Object, e As EventArgs)
 
Dim Sql As String
    Sql = "INSERT INTO Servers (Reboot) VALUES ('" & CheckReboot(TextBox1.Text) & "') where Ip = '" & TextBox1.Text & "'"
SQLExecuteQueryConnect(Sql, SqlDataSourceControl1.ConnectionString)
 
End Sub