I have this database app where on its opening, I would like to alert the user if he doesn't have network access to the database...

I have the path of the database in the registry and would like to see on each opening of the app if the user actualy has access to that path...

thanks for your help