-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: hereiam_always
Message 1 in Discussion
Hello friends, Now you can convert your Database Tables / Data Stored in DB
into a XML File with few steps. All you just have to do is, Create
connection,DataAdapter,DataSet Objects. Populate the Dataset with respective
DataAdapter. And then simply call DataSetÂ’ Method. <o:p></o:p>
<o:p> </o:p>
cmd.Connection = conn<o:p></o:p>
cmd.CommandType = CommandType.Text<o:p></o:p>
cmd.CommandText = "Select * From StudentData"<o:p></o:p>
da.SelectCommand = cmd<o:p></o:p>
da.Fill(ds)<o:p></o:p>
ds.WriteXml(m_strSaveToFileName)<o:p></o:p>
Here in this code m_strSaveToFileName is where I am saving the file. And
WriteXML() is the method we need to use. If you donÂ’t want to use filename
directly you can use XMLWriter instead.<o:p></o:p>
<o:p> </o:p>
Enjoy<o:p></o:p>
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]