October 25, 2010 at 11:23 pm
hi all.
we want to log changing data such as isert,delete and update that users perform.we can do this.but now we want to khnow
which user do this changes?I want to get user's IP Address for this purpose,how to get user's IP Address in sql?
October 26, 2010 at 12:04 am
October 26, 2010 at 12:15 am
DMV sys.dm_exec_connections returns client IP. For example:
select client_net_address, session_id from sys.dm_exec_connections where net_transport = 'TCP'
October 26, 2010 at 3:16 am
elham_azizi_62 (10/25/2010)
hi all.we want to log changing data such as isert,delete and update that users perform.we can do this.but now we want to khnow
which user do this changes?I want to get user's IP Address for this purpose,how to get user's IP Address in sql?
Instead of re-inventing the wheel, why not make use of the Default Trace running SQL Server 2005 and above? This trace captures the DDL changes as well. This article[/url] is a good start.
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply