I can do a delete, insert and update in my program and I try to do an insert by call a created stored procedure from my database.
This a button insert I make work
public void myfunction(){ try { sqlcon.Open(); SqlCommand cmd = new SqlCommand("sp_laba", sqlcon); cmd.CommandType = CommandType.StoredProcedure; cmd.ExecuteNonQuery(); } catch(Exception ex) { MessageBox.Show(ex.Message); } finally { sqlcon.Close(); } }