If we have our website deployed on server "A", and a user requests a page in this website from his machine "B". Can we get the IP Address of "B" from database server "C" which is connected to "A". For example at the time of logging in when I authenticate my user whose credentials are stored in "C", do we have any T-SQL statement to trace the IP address of the user.
I can read the IP address using ASP.Net but I want to know if it can be done from the SQL Server itself.
I googled and which suggests using SYS.DM_EXEC_CONNECTIONS. But that is applicable when we need to get the IP Address of client connected to database.
May be it is impossible to implement what I am asking. The problem is that I am new to IT world. I will appreciate any help or suggestion.
Thanks in advance