I have used the following code:-
string sql = "insert into reg_table(name, gender, phone, country) values('" + name + "', '" + gender + "', " + phone + ", '" + country + "')";
SqlCommand MyCmd = new SqlCommand(sql, conn);
Now, i want to test if the data is inserted in the database or not. If the data is inserted then it will show me a messagebox and say "data inserted" or "not inserted"...??
can anybody help?
Thanks and Regards