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.
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. |
|
|
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 |
|
|
|
|
|