This question already has an answer here:
I have a line dataset. The dataset is vast and the lines are single features in the data layer. I would like to merge the lines which join at some point. How can I do this using ArcGIS 10.1?
For example: This is the layer, where line fragments are individual records:
Where separate lines meet other separate lines, I would like to join these to form 1 single line record: