How to force Advantage Database Server to set license count in Delphi code

I would like to get the number of installed user licenses for an Advantage Database Server instance in code using Delphi. I found a function that allows me to get the installed version i.e. ACE.AdsMgGetInstallInfo (dm.AdsConnection1.handle, @stInstallInfo, @usSize); but not everything that allows me to check the number of licenses.

+3


source to share


2 answers


ACE.AdsMgGetInstallInfo

The API call you talked about should be correct.



Once called, the relevant information is in the structure ADS_MGMT_INSTALL_INFO

(@stInstallInfo in your example). The field you are looking for is UNSIGNED32

called ulMaxStatefulUsers

.

+2


source


easiest to use SQL:

EXECUTE PROCEDURE sp_mgGetInstallInfo() 

      

allows you to read the installation information,



EXECUTE PROCEDURE sp_mgGetUsageInfo() 

      

values ​​displayed in the Consfiguration Utiltiy (with the / inUse / maxUsed / reject setting).

0


source







All Articles