How to determinate if ExecuteNonQuery sucessful

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I use the codes below;
SqlCommand myCommand = new SqlCommand(sSql, cnn);
cnn.Open();
myCommand.ExecuteNonQuery();

How to determinate if ExecuteNonQuery sucessful?


.