Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

Keeping Connection Alive / Monitoring Status (no replies)

$
0
0
Hi,

I am developing an app which is coded in vb.net using Visual Studio 2010 and using the MySQL Connector/NET.

I need to be able to do two things:

1. Keep the connection open the whole time.
- I find that when the application makes its first connection to the database, it takes about 5-10 seconds, then after that as long as your continaully using it it seems to be responsive.

2. How can I monitor the connection stats? Many of the forms on the application utilise database fields, and if for instance the connection was to drop out (say they lost wireless signal to the internet), I want the application to be able to tell, so I can disable the form they have open until the connection is active again.

Any help appreciated.

Thanks.

Viewing all articles
Browse latest Browse all 1447

Trending Articles