Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select to a temporary cursor
Message
From
04/12/2008 20:32:24
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01365559
Message ID:
01365567
Views:
13
Hi Gerard,

You can use the .ToTable() method of the DataView. So, something like this:
MyTable.DefaultView.RowFilter = "MyColumn = MyValue";
DataTable MyTempTable = MyTable.DefaultView.ToTable();

// or //

DataView dv = new DataView(MyTable);
dv.RowFilter = "MyColumn = MyValue";
DataTable MyTempTable = dv.ToTable();
This might not be totally what you want though, since you mentioned complicated selects, but this was my first thought off the top of my head.

~~Bonnie


>Hi.
>Is there a way in .net (C#) to select to a temporary Cursor and then use this as the source
> of another select e.g.
>
>Select * ,.....from Tablea Into Table Temp1
>Select * from Temp1 into Table Temp2
>Select * from Temp2 into table Temp3...etc
>
>The above selects are just examples
>Each select is more complicated , with numerous fields and some
> of the selects are done for grouping purposes.
>
>Any help appreciated.
>regards,
>Gerard
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform