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
 SQL Server Development (2000)
 Get domain login of client machine

Author  Topic 

scholes
Starting Member

4 Posts

Posted - 2005-10-14 : 04:15:23
have a client server application running,the client machine connects to SQL server 2000 on the server via mixed mode authentication. So the user at the client machine, runs the client part of the application, which then connects to the server. Now, a table in the database has a trigger which fires when an update is done to this table. this trigger records information of who(made the change) and what was changed in the table.
This app connects to the server and database via a System DSN odbc connection, which uses NT authentication(network login id).

What i want do is to to get the name of the user who has logged into the client machine. The users log in with their domain usernames eg: S2\Fayyaz.Asmal

now in my trigger, if i use SYSTEM_USER or any of the other functions(USER_ID, suser_name etc etc), then i do not get the name of the user logged in at the client, instead i get NT AUTHORITY\SYSTEM. But i want the domain user name of person logged in.

CAN ANYBODY HELP ME?

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-10-14 : 04:22:54
Duplicate post
Continue your discussions here
http://sqlteam.com/forums/topic.asp?TOPIC_ID=56403

Madhivanan

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

- Advertisement -