Is there a way in SQL Server to see the history of all connected servers / clients with their respected hostnames, IP addresses and the last connected date?
Basically what I want is an history table of the sp_who2 stored procedure.
Does this or something similar exist by default, so that I can retrieve the above mentioned info?
Here is a solution if you can utilize a trigger.
If you run this script, subsequently each time there is a login, details of that logic event will be logged to [master].[dbo].[TRACETABLE].