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
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Retreive Windows user logged on PC, possible?

Author  Topic 

ismailc
Constraint Violating Yak Guru

290 Posts

Posted - 2009-04-20 : 14:46:47
Hi,

I would like to know if it's possible to retreive Windows user logged on to the PC (domain\userid) using Sql, if possible please provide code?

Regards

jdaman
Constraint Violating Yak Guru

354 Posts

Posted - 2009-04-20 : 15:16:16
If using windows authentication mode SUSER_SNAME() will give you the domain\userid.
Go to Top of Page

ismailc
Constraint Violating Yak Guru

290 Posts

Posted - 2009-04-20 : 16:42:01
Unfortunately i am not using windows authentication,
and the function returns the userid logged onto the db.

I am looking to get the windows auth user as web browsers determines or in the registry.

I hope it's possible!

Regards
Go to Top of Page
   

- Advertisement -