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.
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
.
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).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.