How to check max number of licensed users?

infonote
Member Posts: 233
Hi,
Does anyone know how I can check the max number of users allowed by the license?
Thanks
Does anyone know how I can check the max number of users allowed by the license?
Thanks
Blog: http://www.kaizenlog.com
0
Comments
-
Hi,
Have a look at the licence with Tool -> licence information. It is slightly different depending how old the licence, but look for the number of sessions0 -
This info is stored in the licensefile. Nav reads here the licenseDo you make it right, it works too!0
-
can't you also click File --> Database --> Information, then click 'Sessions' tab and read value of "Licensed Sessions" field?
this may be easier for some end users...
(of course, don't you have to subtract 2 licenses automatically for the server?)kind of fell into this...0 -
i think he need it via C/AL.
If not, go to File -> Database -> Info -> Session (as jversusj said)Do you make it right, it works too!0 -
garak wrote:i think he need it via C/AL.
If not, go to File -> Database -> Info -> Session (as jversusj said)
how would you get it via C/AL? would you have to call the License Information table and skip through lines until you got the line regarding the sessions? just curious...kind of fell into this...0 -
jversusj wrote:garak wrote:i think he need it via C/AL.
If not, go to File -> Database -> Info -> Session (as jversusj said)
how would you get it via C/AL? would you have to call the License Information table and skip through lines until you got the line regarding the sessions? just curious...
i doesn't read it with C/AL because u can't do it (without breaching the fingers). These infos are stored in the license file self. NAV read it when you load the client and connect to a server. Wit native server the license file is in the server directory as fin.flf (how to connect there to the directory [permission problems]), with sql it's stored in the master database in a separate table as BLOB.Do you make it right, it works too!0 -
0
-
Hi,
it so easy, try this sample of code:VAR LicenceInf@50000 : Record 2000000040 MaxUsers@500001: Integer LicenceInf.SETFILTER(Text,'%1%2%3', '*', '1,200', '*'); // granule id filter LicenceInf.FINDFIRST; // if error raised, probably developer licence EVALUATE(MaxUsers, DELCHR(COPYSTR(LicenceInf.Text,STRLEN(LicenceInf.Text) - 5), '<>')); MESSAGE('Max number of licensed users: %1', MaxUsers);
8) & :whistle:_-========-_
GreenSmile1 -
I know, that this topic is for Classic Client, but to make sure, this information is RTC-ready, here is the working code for Dynamics NAV 2017:
CLEAR(MaxUsers); CLEAR(LicenseInformation); CLEAR(ActiveSession); LicenseInformation.SETFILTER(Text,'%1', '*450*'); IF LicenseInformation.FINDFIRST THEN REPEAT CLEAR(MaxUsersLineCount); EVALUATE(MaxUsersLineCount, DELCHR(COPYSTR(LicenseInformation.Text,STRLEN(LicenseInformation.Text) - 5), '<>')); MaxUsers += MaxUsersLineCount; UNTIL LicenseInformation.NEXT=0;
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions