There are many situation where you need to use transactions in order to avoid incorrect updation or half updation in the database.SO we use transaction that either all data updated or nothing will effect. Here is the code : SqlTransaction trans; if (con.State == ConnectionState.Closed) con.Open(); trans = con.BeginTransaction(); try { DataTable dtCourses = new DataTable(); dtCourses.Columns.Add(new DataColumn("RegistrationNumber", typeof(long))); dtCourses.Columns.Add(new DataColumn("CurrentTerm", typeof(string))); ...
hour of code activities,code.org dance party,hour of code | dance party,google studio code,code.org sign in,code org join,code.org minecraft,hour of code,types of coding,computer coding for beginners,coding websites,coding games,characteristics of algorithm,algorithms for beginners,how to write an algorithm,algorithm synonym,algorithm examples,types of algorithm,what is algorithm in computer,algorithm tutorial