How to get the Connection string from xml file

Posted by Nandkishorre under VB.NET on 9/27/2012 | Points: 10 | Views : 2932 | Status : [Member] | Replies : 4
Hi,

I am Writing connection string in xml file. i want to read that connection string from this xmi file. i am using windows form application with vb.net.

any one tell me the example.

Regards
Nanda Kishore.CH




Responses

Posted by: Jayakumars on: 9/27/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

using Dataset readxml for this


Mark as Answer if its helpful to you

Nandkishorre, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jigarbagadai on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
you can store connection string into app.config file and access that value using below code.

ConString As String = ConfigurationManager.ConnectionStrings ("ConString").ConnectionString


Jigar Bagadai

Nandkishorre, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nandkishorre on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
could u send me the sample code.... ?

Nandkishorre, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
see this link sample code is there
http://social.msdn.microsoft.com/Forums/en/adodotnetentityframework/thread/4582fec9-7e06-4c3b-aee5-481bc826834a

Thanks & Regards
Hari

Nandkishorre, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response