Hi I am trying my first windows application. I have created a connection string in my app.config. I have tried some test coding to see if my connection works prior to completing the coding for textbox/combobox insertions to my .sdf (sqlce) file.
Here is the code I used to test the connection:
{
conn =
conn.Open();
cmd.CommandText =
cmd.ExecuteNonQuery();
}
conn.Close();
I assume the connection works fine as I get no error, yet when I view table data there is no record in the database??
Yet if I click the click event button twice I get a duplicate value error
Any idea what I'm doing wrong???