I would like to be able to get the number of installed user licenses for an Advantage Database Server instance in code using Delphi. I have found a function that lets me get the installed version, ie. ACE.AdsMgGetInstallInfo(dm.AdsConnection1.handle,@stInstallInfo,@usSize);, but not anything that lets me check the license count.
Asked
Active
Viewed 326 times
2 Answers
2
The ACE.AdsMgGetInstallInfo
API call you mentioned should be the correct call.
After the call the appropriate info is in the ADS_MGMT_INSTALL_INFO
structure (@stInstallInfo in your example). The field you're looking for is an UNSIGNED32
called ulMaxStatefulUsers
.

Mikel Rychliski
- 3,455
- 5
- 22
- 29
0
easiest to use SQL:
EXECUTE PROCEDURE sp_mgGetInstallInfo()
lets you read out the installation information,
EXECUTE PROCEDURE sp_mgGetUsageInfo()
the values displayed in the Consfiguration Utiltiy (configured/inUse/maxUsed/rejected).

Walery Strauch
- 6,792
- 8
- 50
- 57

joachimduerr
- 16