Test connection to database C#
It's a little verbose.

I would write

try {
    using(var connection = new OleDbConnection(...)) {
        connection.Open();
        return true;
    }
} catch {
    return false;
}


You should also use OleDbConnectionStringBuilder to properly escape the variables in the connection string.