How to check DB Connection is established or not

Hi All,

I have to check if db connection is established. if connection is not established I need to retry.

How to check DB Connection is established?

Thanks in advance.

1 Like

Hi

Check for this thread for more ideas

Cheers @nithya

1 Like

Connect to Database Activity from UiPath.Database.Activities helps establishing the connection to the database and return the Database Connection object as output.

Use If activity with the output variable from the above activity to check
If (DBConnection is Nothing)
If true, Establish the new connection
Else, The Connection exist.

1 Like