I've got a C# app where I need to validate credentials for a DB2 database (V7R3).
The way historically we've done this is to append the credentials to a connection string and actually attempt to connect to the database and just see whether the connection succeeds or fails.
But is there a better way to do that, like an API for testing credentials or something?