Is it possible to track the ip address of request which update table in sql server 2000/05?
+2
A:
There is no built-in function to directly get the IP address. You can select the client hostname like this:
select host_name() /* returns: nvarchar(128) */
Is that enough for what you want to do?
Tomalak
2010-04-21 09:30:44
thanks it works for me
Neo
2010-04-23 05:11:51
A:
Not directly in SQL Server. This is most often accomplished in the application that is making the change. You might consider updating your application to be responsible for getting the client IP.
Terrapin
2010-04-21 16:20:54