473,396 Members | 1,758 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,396 software developers and data experts.

datatable question

Hello all
I have a dataset which contains 3 datatables. I traverse
each datatable and check the rows. I should be able to get
values out of these datatables and create a new datatable?
Is this possible? or does a datatable always have to be
associated with a SQL query or a SQL table? Thanks and I
appreciate your help very much.
Nov 16 '05 #1
2 1763
You can create a DataSet and DataTable without a SQL query. You can
create a new DataSet using the constructor with no parameters. You can then
create a new table and pass that to the Add method on the
DataTableCollection exposed by the Tables property on the DataSet. Then you
can add DataColumns to the DataTable through the Add method on the value
returned by the Columns property, and rows through the Add method on the
value returned by the Rows property.

There is nothing that limits you to using a DataSet with a database.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<an*******@discussions.microsoft.com> wrote in message
news:16*****************************@phx.gbl...
Hello all
I have a dataset which contains 3 datatables. I traverse
each datatable and check the rows. I should be able to get
values out of these datatables and create a new datatable?
Is this possible? or does a datatable always have to be
associated with a SQL query or a SQL table? Thanks and I
appreciate your help very much.

Nov 16 '05 #2
This is possible. The data set is basically an in memory database of
sorts. So any relational data/operation that you have can be represented
by a Dataset.

an*******@discussions.microsoft.com wrote:
Hello all
I have a dataset which contains 3 datatables. I traverse
each datatable and check the rows. I should be able to get
values out of these datatables and create a new datatable?
Is this possible? or does a datatable always have to be
associated with a SQL query or a SQL table? Thanks and I
appreciate your help very much.


--
Regards,
Dilip Krishnan
MCAD, MCSD.net
dilipdotnet at apdiya dot com
Nov 16 '05 #3

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

Similar topics

1
by: Mike | last post by:
I have an ASP.NET/VB app that updates values in a DataTable over the course of about 3 different pages. On the way out of the first of these pages, I explicitly build the DataTable from values in...
1
by: Mike | last post by:
I have an ASP.NET/VB app that updates values in a DataTable over the course of about 3 different pages. On the way out of the first of these pages, I explicitly build the DataTable from values in...
6
by: Danny Ni | last post by:
Hi, If I want to programatically add rows to a DataTable, do I call AcceptChanges per row? Or do I call AcceptChanges after all rows added? TIA
5
by: jehugaleahsa | last post by:
Hello: What is the point of using a DataTable in ASP .NET? We are unsure how you can use them without 1) rebuilding them every postback, or 2) taking up precious memory. We are not sure how to...
9
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I've got a routine that builds a table using different queries, different SQL Tables, and adding custom fields. It takes a while to run (20 - 45 seconds) so I wrote a thread to handle the table...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.