you cant go to srinagar by train from any part of india. there is no link
Sina(Srinagar) is not linked with any major station of Indian railways. Only Passenger train run between Anatnag and Badgam and Srinagar is an intermediate station in this section. You Can reach up to Udhampur from Jammu and from there you have to go by road to Anantnag and then catch train to Srinagar from Anatnag.