Transactions in .net

Transction processing .net.
SqlConnection con = new SqlConnection(myConnStr);
SqlTransaction transaction;

      con.Open();
      transaction = con.BeginTransaction();
      try 
      {
         new SqlCommand(mySQLQuery1111, con, transaction)
            .ExecuteNonQuery();
         new SqlCommand(mySQLQuery1222, con, transaction)
            .ExecuteNonQuery();
         
         transaction.Commit();
      } 
      catch (SqlException sqlError) 
      {
         transaction.Rollback();
      }
      db.Close();