Buy some new seals for it, and clean out all the water drain tubes. You should have 4 or 2 in your sunroof. You can just run a thin wire to break whatever is blocking it. That would be a lot cheaper then going ghetto and welding it shut.
Also its tough welding onto sheet metal the metal will warp if not done right.