473,399 Members | 3,656 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,399 software developers and data experts.

dataset manipulation

hi
i have a dataset in my webservice which i pass to the windows app.
i want to be able to make querries to that dataset
and update it too ..then pass it back to the web service for updatng the
database..
that way i dont make calls to the database time and again.
any idea where i can read more on this?
also i have found 1 way to query my dataset but i dont quite like it
i would prefer the sql way of querrying my dataset

DataRow[] SydneyRecs = dsCity.Tables["City"].Select("CityName = 'Sydney'");

is it possible to do an sql type of query on my dataset rather than the

command above

thanx for your help

Jul 21 '05 #1
2 4262
Well...not as long as your system time is messed up ;)

"shahrukh" <sh******@hotmail.com> wrote in message
news:ez****************@TK2MSFTNGP11.phx.gbl...
hi
i have a dataset in my webservice which i pass to the windows app.
i want to be able to make querries to that dataset
and update it too ..then pass it back to the web service for updatng the
database..
that way i dont make calls to the database time and again.
any idea where i can read more on this?
also i have found 1 way to query my dataset but i dont quite like it
i would prefer the sql way of querrying my dataset

DataRow[] SydneyRecs = dsCity.Tables["City"].Select("CityName = 'Sydney'");
is it possible to do an sql type of query on my dataset rather than the

command above

thanx for your help


Jul 21 '05 #2
Sharukh

Something like this may do the trick:

DataSet ds = new DataSet();
SqlConnection myConnection = new SqlConnection(...);
SqlDataAdapter adapter = new SqlDataAdapter(
"SELECT * FROM City WHERE CityName = 'Sydney'", myConnection);
adapter.Fill(ds, "City");

Nick
"shahrukh" <sh******@hotmail.com> wrote in message
news:ez****************@TK2MSFTNGP11.phx.gbl...
hi
i have a dataset in my webservice which i pass to the windows app.
i want to be able to make querries to that dataset
and update it too ..then pass it back to the web service for updatng the
database..
that way i dont make calls to the database time and again.
any idea where i can read more on this?
also i have found 1 way to query my dataset but i dont quite like it
i would prefer the sql way of querrying my dataset

DataRow[] SydneyRecs = dsCity.Tables["City"].Select("CityName = 'Sydney'");
is it possible to do an sql type of query on my dataset rather than the

command above

thanx for your help


Jul 21 '05 #3

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

Similar topics

0
by: thomas | last post by:
I must be doing something obvious wrong here, but: I perform a query to retrieve a dataset - I want to archive this in a SQL field for seperate retrieval later, while the original data may have...
6
by: Boaz Ben-Porat | last post by:
I heard somewhere that the DataGrid class is implemented as a XML graph in memory. Is this true ? TIA Boaz Ben-Porat DataPharm a/s Denmark
1
by: Romao | last post by:
Hi, None of the C#/ADO documentation I was able to read refers what are the best practices/implementations for this "kind of" problem, I would like to get help/opinions please, let me explain...
4
by: Sindarian | last post by:
This just seems like the most basic thing, but I can't find a simple description of this process anywhere and in here, everone is talking about going the other way :( I had .NET create an XML...
2
by: Calvin KD | last post by:
Hi everyone, I know the solution to my problem is probably very simple but I just can't seem to figure out how to do it. My problem is, I have an XML file as a datastore, I read it into a dataset...
1
by: Bradley | last post by:
Can somebody point me to link or, preferably, an example of an application that displays data from a dataset bound to a control (e.g. datagrid) where the content of the data is limited by user...
2
by: shahrukh | last post by:
hi i have a dataset in my webservice which i pass to the windows app. i want to be able to make querries to that dataset and update it too ..then pass it back to the web service for updatng the...
1
by: Konda | last post by:
Hi All, I have a problem with DataSet while adding a new row into dataset by another dataset. My assignment is Adding and Removeing from Two Grids. I want to add a row into new Grid2 when i...
3
by: Tom | last post by:
I have a dataTable being returned from my datalayet, I need to convert it to a dataSet so I can do some data manipulation to it prior to populating my datagrid. How can I convert the datatable to a...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.