Is there any way of seeing details of sessions from the past (I fully expect the answer to be "no"). I am trying to find out what server a certain application is running on, that application accessing a certain database. I know the application runs at some point on a Friday evening so I was hoping that SQL server maintains a session history so I could just look up sp_who-like details for the hours in question.
Like I say, I don't expect this to be possible but right now I am absolutely clutching at straws.
Thanks in advance.
EDIT: I found the server in question by other means in the end; the job executed a SQL statement to create a file which was then FTPd to another site - that site has FTP logging that could give me the name and IP address of the source server. Thanks for the answers - I only wish I could accept them both as they both make very good points and give very good suggestions.
selectscript, unfortunately. I knew deep down it wouldn't be possible, for exactly the reason you state, but it was worth a try, I suppose. I could always sit here until 20:30 Friday night and just runsp_whobut I suspect the job only takes a few seconds. I'll have to see if the infrastructure guys can come up with anything suitably clever. Thanks for the reply. – Spratty Aug 22 '19 at 15:36