A transformer is ideally an inductive coil. For an inductor connected across a DC voltage.  ​V−Ldtdi​=0⇒V=Ldtdi​⇒∫di=LV​∫dt⇒i=LVt​​ For a DC source, the current across the inductor will increase with time and can reach a very large value, which can burn the transformer.