25-10-21 03:09 AM
25-10-21 08:50 PM
26-10-21 02:26 AM
SELECT COUNT(*) FROM BPASession WHERE statusid in (0,1)would be suffice.
26-10-21 01:50 PM
26-10-21 02:22 PM
I set up for you to be able to view the information of your licenses through the bank I hope it helps!!
If it helps, mark as best answer
select
issue_to as 'Name of Company',
FORMAT(License_expires_on,'dd/MM/yyyy') 'Date of validate',
datediff(day, getdate(), License_expires_on) 'Days Remaining'
from
(
select
cast (lic.licensexml as xml).value('(/license//licensee/node())[1]', 'nvarchar(10)') as [issue_to],
cast(cast(lic.licensexml as xml).value('(/license//expires/node())[1]', 'nvarchar(10)') as date) as [License_expires_on],
cast(lic.licensexml as xml).value('(/license//maxconcurrentsessions/node())[1]', 'nvarchar(10)') as [available_licences]
from
(
select
convert (varchar(2000), cast(' ' as xml).value('xs:base64Binary(sql:column("base64_column"))', 'VARBINARY(2000)')) AS LICENSEXML
FROM
(
select
licensekey as base64_column
from
bpalicense
)
a
)
lic
)
as pog
where
pog.License_expires_on >= getdate()
order by
pog.License_expires_on
26-10-21 02:54 PM
KeyInfo ki = new KeyInfo("YOUR_KEY_INFO_HERE");
Console.WriteLine("Num Concurrent Session: " + ki.NumConcurrentSessions);
Console.WriteLine("Num Published Processes: " + ki.NumPublishedProcesses);
Console.WriteLine("Num Resource PCs: " + ki.NumResourcePCs);
Console.WriteLine("Expiry Date: " + ki.ExpiryDate);
Console.WriteLine("Press any key to continue.");
Console.ReadLine();
26-10-21 09:00 PM
26-10-21 09:03 PM
27-10-21 03:30 AM
27-10-21 04:32 AM