11
Answers

Db Connection

Joshua

Joshua

13y
3.5k
1
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)