Hi all
i have a little problem over here, i need to know who is logged in to the database that works in a network envinronment with windows xp. I have used the ShowUserRosterMultipleUsers function that is available in the microsoft web page and it works nice, but the only problem is that it shows admin for all users.
Computer_Name Login name Connected SuspectState
FL52213 admin True Null
FL55022 admin True Null
FL56429 admin True Null
so i have used the function fOSUserName that is available in the net writen by Dev Ashish which returns the network login name, i have tested in 3 pc's and i get this result
Computer_Name Login name Connected SuspectState
FL52213 smithg True Null
FL55022 smithg True Null
FL56429 smithg True Null
The computer name is ok but the login name shows the same for all the 3 pcs.
All i need is the login name be the right one for each pc, i am running this routine on the first pc FL52213 and the other 2 are logged in the same application.
Does anyone have a suggestion. i thank you in advance
i have a little problem over here, i need to know who is logged in to the database that works in a network envinronment with windows xp. I have used the ShowUserRosterMultipleUsers function that is available in the microsoft web page and it works nice, but the only problem is that it shows admin for all users.
Computer_Name Login name Connected SuspectState
FL52213 admin True Null
FL55022 admin True Null
FL56429 admin True Null
so i have used the function fOSUserName that is available in the net writen by Dev Ashish which returns the network login name, i have tested in 3 pc's and i get this result
Computer_Name Login name Connected SuspectState
FL52213 smithg True Null
FL55022 smithg True Null
FL56429 smithg True Null
The computer name is ok but the login name shows the same for all the 3 pcs.
All i need is the login name be the right one for each pc, i am running this routine on the first pc FL52213 and the other 2 are logged in the same application.
Does anyone have a suggestion. i thank you in advance