473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

WebSerive DataSet

Hello,
I am quite new in asp.net, here is the code I retrieve data from a web service
SVP.ThisWebService.loadMethod lm = new SVP.ThisWebService.loadMethod();
System.IO.StringReader sr = new System.IO.StringReader(lm.loadXlm());
DataSet ds = new DataSet();
ds.ReadXlm(new System.Xlm.XlmTextReader(sr)) ;

Now, I have data in ds, what is the easiest way to dump this dataset into a
table?

May 15 '06 #1
3 1361
Hello,
my friend Dataset is itselt mini database, When you load data into dataset ,
you have already loaded data into table . You can access tables by
DataSet.Tables[Tablename]. This is what you mean to say by loading?

"JIM.H." wrote:
Hello,
I am quite new in asp.net, here is the code I retrieve data from a web service
SVP.ThisWebService.loadMethod lm = new SVP.ThisWebService.loadMethod();
System.IO.StringReader sr = new System.IO.StringReader(lm.loadXlm());
DataSet ds = new DataSet();
ds.ReadXlm(new System.Xlm.XlmTextReader(sr)) ;

Now, I have data in ds, what is the easiest way to dump this dataset into a
table?

May 15 '06 #2
Hi Altaf,
Thanks for the reply, as you see in the code my dataset is a new instance,
and filled in with ReadXMl, it is not linked to a table, I need to dump the
content to a sql server table. Any idea?
"Altaf Al-Amin Najwani" wrote:
Hello,
my friend Dataset is itselt mini database, When you load data into dataset ,
you have already loaded data into table . You can access tables by
DataSet.Tables[Tablename]. This is what you mean to say by loading?

"JIM.H." wrote:
Hello,
I am quite new in asp.net, here is the code I retrieve data from a web service
SVP.ThisWebService.loadMethod lm = new SVP.ThisWebService.loadMethod();
System.IO.StringReader sr = new System.IO.StringReader(lm.loadXlm());
DataSet ds = new DataSet();
ds.ReadXlm(new System.Xlm.XlmTextReader(sr)) ;

Now, I have data in ds, what is the easiest way to dump this dataset into a
table?

May 15 '06 #3
Yes you can insert data from dataset into sql server by using variety of
solutions. If you have loaded your data using dataadater then this is easy
but as have loaded xml into data set then you can do it by using OPENXML
avaiable by the SQL Server 2000, Make sure that your xml is relational and
you can use openxml to insert this xml as bulk data into sql server tables.
See following url

http://blogs.netindonesia.net/melvin/articles/1986.aspx

Tell me if my answer was helpful to you.

"JIM.H." wrote:
Hi Altaf,
Thanks for the reply, as you see in the code my dataset is a new instance,
and filled in with ReadXMl, it is not linked to a table, I need to dump the
content to a sql server table. Any idea?
"Altaf Al-Amin Najwani" wrote:
Hello,
my friend Dataset is itselt mini database, When you load data into dataset ,
you have already loaded data into table . You can access tables by
DataSet.Tables[Tablename]. This is what you mean to say by loading?

"JIM.H." wrote:
Hello,
I am quite new in asp.net, here is the code I retrieve data from a web service
SVP.ThisWebService.loadMethod lm = new SVP.ThisWebService.loadMethod();
System.IO.StringReader sr = new System.IO.StringReader(lm.loadXlm());
DataSet ds = new DataSet();
ds.ReadXlm(new System.Xlm.XlmTextReader(sr)) ;

Now, I have data in ds, what is the easiest way to dump this dataset into a
table?

May 18 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bill C. | last post by:
Hi, I've got a simple console app that just reads an XML file into a DataSet then prints out a description of each table in the DataSet, including column names and row values for each column. ...
1
by: Andy | last post by:
Hello, I have a WebService that sends a client a DataSet as XML (I use a DataSet.GetXml to get the XML). The DataSet is filled by a DataAdapter in the WebService. The client coverts the XML Back...
3
by: Jeronimo Bertran | last post by:
Hi, I have an xml file that encapsulates a dataset definition within a set of tags (<dataset>)... here is an example <?xml version="1.0" encoding="utf-16"?> <dataset> <MyTable>...
2
by: JS | last post by:
I'm trying to create a data layer and having problems returning a DataSet from my code that's in a class module. Please forgive me. I'm new to C# (VB'er). I decided to create my data layer in...
5
by: Mike | last post by:
I need to expand the DataSet class by inheriting from it and adding functions that work on the data in the tables. However, since I can't upcast how can I get my base DataSet object assigned an...
5
by: Christian Ahrenkiel | last post by:
Hi, I've got a DataSet (ds) which was created by a DataAdapter (da) method: ds.Fill(ds). This DataSet is passed through various methods (by value). Each method changes some fields in the...
2
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
1
by: matt | last post by:
hello, i have a web app that allows users to query our oracle db and produce a dataset of report data. they then have the option to serialize this data and store it in the database. later, then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.