(1) Until 1798 , he studied in Dresden before settling in Copenhagen .
(2) He studied in Copenhagen until 1798 , before settling in Dresden .

Do these two sentences mean the same thing?
no