String DBConn = ConfigurationManager.ConnectionStrings["TitaniumLMC"].ToString();
also how do you post to a local machine database running sql server?
Newbie help
what does this string mean in c#?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Simon66 pointsPosted Apr 6, 2007, 10:17 PM EDT
Hello, ConfigurationManager.ConnectionStrings["TitaniumLMC"].ToString() returns the connection string associated to the name "TitaniumLMC" in your app.config file. By the way, you should rather use ConfigurationManager.ConnectionStrings["TitaniumLMC"].ConnectionString. In order to post data to a local machine database, just add the local machine's connection string to your app.config file, refer to it as specified previously, create a new SqlConnection and work with SqlCommand/SqlDataReader/SqlDataAdapter. Simon