11
Reply

Db Connection

Joshua

Joshua

Oct 3 2011 10:39 AM
3k
Hi
i'm looking for an example -> where  the connection to a db is definde one time and then you can need it for all formulars
my question is
--------------------------------------------------------------------
i make a connection for example:
static String connString = Properties.Settings.Default.auftragsverwaltungConnectionString;
MySqlConnection myconn = new MySqlConnection(connString);
--------------------------------------------------------------------

and now i can use for all formulars
myconn.open
Code ...

myconn.close


thanks for help
joshua



Answers (11)