Reputation: 2229
I using a .sdf
SQL server compact edition database and i want to insert data into it, but it didn't inserts!
My code:
string queryString = "INSERT INTO words(rus) VALUES(@wordp)";
SqlCeCommand cmd = new SqlCeCommand(queryString, conn);
cmd.Parameters.Add(new SqlCeParameter("@wordp", textBox1.Text));
cmd.ExecuteNonQuery();
cmd.Dispose();
conn.Close();
Connection opened correctly, and SELECT
queries executes sucessfully. But after inserting data it's not inserts! I haven't any errors or warnings, and cmd.ExecuteNonQuery()
return value 1
- query is executed correctly, but data not inserts!
In what could be the problem?
Upvotes: 0
Views: 2599
Reputation: 1063005
This is usually simply an error of looking in the wrong file when debugging.
Upvotes: 4