This question already has an answer here:
I have a simple point feature class and line feature class. Each point has an ID. The Line feature class has a "Start Point ID" and "End Point ID" field, both of which are currently empty. The line start/end points are snapped to points.
I'd like to do some sort of spatial join to populate the Start Point ID and End Point ID fields of the line based on what points the line is touching.
Each line feature is a simple two-vertex line, no polylines.
Any ideas on how to accomplish this without just copying and pasting ids?