I'm using PB6 to connect MS SQL Server with integrated security, that mean use NT authenticate to login to database.
In the application, how to get the NT login id for user?
any sample code? Because I need to create a audit trail table.
Open the nvo
In the menu bar, select
Declare > Local External Functions and paste
"Function boolean GetUserNameA (ref string name, ref ulong len) library "ADVAPI32.DLL"
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.