My Manager has asked me to create a table that will keep track of no. of user that are logged on to the database. We want this table to be run every 5 minutes. This is being done because one of our client is starting to run low on the no. of user licences. We would like to find out when we have the most user traffic and how many users were logged in. This information must be saved on a table, because our ultimate goal is to create a report, which will display the time at which max no. of users were logged on each day. I am not really sure where to begin. Any suggestions.
My manager told me if I were to go to FILE-> DATABASE-> INFORMATION->SESSIONS, I can see the number of current sessions (users that are logged in).
Is it possible to automate the table so it could run every 5 minutues and store the result????.
Comments
If so there are many posts about automatically loggin out user sessions after a set amount of time has passed (10 mins, 20 mins, 30 min, etc) without activity.
This will insure that you have just active users logged in creating space for those who need to login from being locked out. Search forum for "Kill Idle Sessions"
Else increase your concurrent users in your license.
Also, we use in G/L Setup - there is a user setup where we check off "Register Time" and it stores the times in table 51 "User Time Register" We've modified CU1 & that table to include some new fields like
"Login Time"
"Logout Time"
"Day"
http://www.BiloBeauty.com
http://www.autismspeaks.org
Let me bang my head against the wall ](*,) and try to figure it out before I ask you guyz for help.
The bottom line is to show this information to the client, so that we could buy more licenses.
And we then can run reports off of that table.
What your manager is asking doesn't make sence to me. You either have enough licensed user sessions or you don't. Now if some users are leaving there sessions open & unattended then that's what you need to attack by closing these sessions.
I mean for how log do you plan on logging this info?
What if all your sessions are full early one day, midday then next or late at night the next.
Will you be telling some users they can't work between x:xx o'clock?
http://www.BiloBeauty.com
http://www.autismspeaks.org
KCP Consultores
Code is written on the OnRun trigger on the codeunit.
KCP Consultores
And even tho other suggestions are made you seem to just plow thru with the "managers" requests. You can have all your users loggin in at once doing nothing or 1 user doing heavy posting. Now you are not learning anything about usage by just saving the # of logged in users every 5 minutes in my opinion.
and closing unused/unactive sessions is where your focus should be.
http://www.BiloBeauty.com
http://www.autismspeaks.org
KCP Consultores
I am doing this table just to get the proof to show them we are getting close to using up all the licenses.
KCP Consultores
KCP Consultores
how do i write the count to the UserLoggedON table....i did setup a primary key called Line No. (integer -data type) and i increment it at the end of codeunit...but still nothing...any idea what i might be doing wrong....?????
KCP Consultores