public connectivity

J

Jassim Rahma

Hi,

how can i connect to mySQL server and keep the connectivity in a public
area so that I can use it fro all forms within my application...


Many Thanks,
Jassim Rahma
 
N

Nicholas Paldino [.NET/C# MVP]

Jassim,

If you want to expose a connection, you should create a static property
and then create a new connection every time that property is called. You
want to create a new connection because your routines should close the
connection when they are finished with it, you shouldn't keep the connection
open if you are not using it.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top