Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 IP address

Author  Topic 

Anisha
Starting Member

10 Posts

Posted - 2008-02-27 : 04:13:19
Hi all

I want to know that if different users have access to a database with same loginName and password then how can I get the IP address of a particular user through a query.

Thanks in advance

Anisha

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-02-27 : 04:16:39
You can use HOST_NAME() system function.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-02-27 : 05:20:37
http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/get-ip-address.aspx

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -