i have a system that use sql server authentication to logon and i need to get the NT user name for that user . a note that you must know that all the user logon with the same name so i need to make a tigger to log all transaction with the NT user name .
I don't think you can do it....if I understand you...
Your users are using NT workstations to connect to the SQL server. They login to the NT using their individual login and password, but when they connect to the SQL Server they all use the same login and password. I would think that since the users NT login is never 'passed' to the SQL Server, you can't get that information from the SQL Server, it only exists on the NT workstation.
But, I might be wrong and we'll both learn something new.
Can you explain your problem with more detail. Since it is not very clear.
If users uses different NT username but same sql logins e.g. sa
In this case there is no way to differenciate btn the users because NT username will not be considered.
You have to use windows authentication or other way is to create different users in sql-server.
Is there any special reason you have your users connect to SQL Server using a common login/password?
Even if you don't want to have them all use separate SQL Server logins/passwords, I would think you could have them use their NT login/password to access the SQL Server. Just set it up as a trusted domain.
It's much better security than everyone using the same login/password.
thank u all again i think this will help me some.about why i have to use 1 user to log in case the logic of program let me do that and i dont built this program i just mentain it .
basel jum'a
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.