• How do I know if the connection to the database is open ?

    I´m working with sage 50 CA 2016 SDK, and i have a problem with database connection.

    When I run this code in a console application successfully opens the connection, but when I run the same code in a Winform application , does not open the connection…