Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL against a DataSet
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
SQL against a DataSet
Miscellaneous
Thread ID:
00902028
Message ID:
00902028
Views:
64
If I create a DataSet with a command like:

DataSet dsOrders = this.GetDataSet("SELECT * FROM orders WHERE conditions")

Is it possible to then run a second SQL against the resulting DataSet? I can accomplish this in SQL Server with the following:

CREATE VIEW dsOrders AS
SELECT field1, field2 FROM myTable WHERE conditions

SELECT field1, field2 FROM dsOrders WHERE moreconditions

I have a complex query that returns a DataSet that I would then like to run several other queries against. Thanks in advance for any suggestions.

Kind Regards,

Mat
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Next
Reply
Map
View

Click here to load this message in the networking platform