|
-
Feb 27th, 2004, 10:40 PM
#1
Thread Starter
Member
DataSet
Hi I would like to ask if i use the dataset in the code, is it that i have to create xml in it? what is the the meaning dataset for?
-
Feb 28th, 2004, 12:43 AM
#2
Junior Member
Not sure exactly what you mean. Are you asking if you can create an XML file from a dataset....answer: Yes, using the dataset.writeXml method. If you are asking what is the purpose of the dataset if you already have an XML document to read. Answer: .NET has very good native XML readers. You can just read the xml doc without doing and table, column mapping and read the data from the dataset as loaded in memory.
-
Feb 28th, 2004, 01:32 AM
#3
Thread Starter
Member
Originally posted by betrl8thanever
Not sure exactly what you mean. Are you asking if you can create an XML file from a dataset....answer: Yes, using the dataset.writeXml method. If you are asking what is the purpose of the dataset if you already have an XML document to read. Answer: .NET has very good native XML readers. You can just read the xml doc without doing and table, column mapping and read the data from the dataset as loaded in memory.
erm if i want to use dataset, Can i not use xml instead use sql?
-
Feb 29th, 2004, 01:29 AM
#4
Junior Member
I'm sorry, but I'm still unclear as to what you're asking. Datasets can be used for anything having to do with data. They can be used when connecting to a database, when reading XML, SQL Server, Oracle, MySQL, Access, FoxPro, etc.... Look at a dataset as a computer memory storage of a database, that disposes when your application is closed. You don't even have to use a datasource. You can use datasets just to store your program information in.
<----------------------------->
"In the immortal words of Socrates, who said "'I drank what?!'"
-
Feb 29th, 2004, 06:55 AM
#5
Sleep mode
Originally posted by Sakana
erm if i want to use dataset, Can i not use xml instead use sql?
As I understand your question (with some difficulties ) , then yes why not .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|