Reputation: 1525
I've written a WPF app in C# (4.5) and it connects to a DB2 server. I want to know if there's a way to check the local machine for a valid DB2 license and display a warning if it's not found.
Upvotes: 0
Views: 209
Reputation: 7693
There is not an api to access the license manager in DB2. However, you have two options:
Upvotes: 1
Reputation: 2682
You have to run the db2licm
command to check the DB2 license.
Click here to see how to run DB2 commands in C#.
Upvotes: 1