I'm having some troubles parsing SQL query, I'm trying to update the database. I have a database as follows:
name: Users
columns:
ID (int)
userName (string)
LastConnected (string)
isConnected (string)
I tried this:
SqlCeCommand upDateUserAsConnected = new SqlCeCommand("(update Users set isConnected='Connected' where ID=" + userID + " and userName='"+userName+"')", cn);
and that's not working... what did I do wrong?