Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
11
Reply
Db Connection
Joshua
Oct 3 2011 10:39 AM
3k
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
11
)
Next Recommended Forum
Datagridview columns calculations
Treeview in C# - trying to get children from sitecore to the webapp