PC Review


Reply
Thread Tools Rate Thread

Creating a new Datatable with from an existing Datatable using SQL

 
 
monkhi
Guest
Posts: n/a
 
      16th Mar 2004
I currently have a Dataset with a single Datatable, which is filled
using a DataAdapter. I would like to run a SQL query on the Datatable
and create a new Datatable in the same Dataset with the results from
the SQL query.

The results from the second Datatable will be used to populate a
Crystal Report.

Any ideas or suggestions on how I should approach this?

Thanks,

Minh
 
Reply With Quote
 
 
 
 
Cor
Guest
Posts: n/a
 
      16th Mar 2004
Hi Monkhi,

I did not take long time to think about your problem, but I think that
\\\
dataset.tables.add(mynewtable)
///
I asume you did already clone the datatable and populated it with the
founded datarow array from the datatable.select.

I think this is all you need?

Cor

> I currently have a Dataset with a single Datatable, which is filled
> using a DataAdapter. I would like to run a SQL query on the Datatable
> and create a new Datatable in the same Dataset with the results from
> the SQL query.
>
> The results from the second Datatable will be used to populate a
> Crystal Report.
>
> Any ideas or suggestions on how I should approach this?
>
> Thanks,
>
> Minh



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Insert New Row Into Existing DataTable While Looping DataTable Kelvin Microsoft C# .NET 4 8th Dec 2004 10:01 PM
Creating a Queried DataTable From an Existing DataTable Lee Ottaway Microsoft ADO .NET 1 22nd Jul 2004 10:30 AM
Populate a DataTable (with Aggregation) from an existing DataTable =?Utf-8?B?RnJhbmNpc2Nv?= Microsoft ADO .NET 1 21st Feb 2004 12:42 PM
Populate a DataTable (with Aggregation) from an existing DataTable =?Utf-8?B?RGlhYmxv?= Microsoft ADO .NET 1 26th Jan 2004 09:20 PM
Create DataTable From Existing DataTable Gimen Microsoft ADO .NET 5 14th Jan 2004 02:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:45 PM.