Home All Groups Group Topic Archive Search About
Author
15 May 2006 1:53 AM
george
Can you run SQL statement against a datatable and if so how?

Thanks

Author
15 May 2006 2:47 AM
Matt Noonan
george wrote:
> Can you run SQL statement against a datatable and if so how?
>
> Thanks

You can use the RowFilter property of the DefaultView to narrow down the
number of rows in the DataTable, but if you are looking for aggregates or
some other computation (without making another call to the database), you'll
have to write your own code.


--
Matt Noonan
EasyObjects.NET: The O/RM for the Enterprise Library
http://www.easyobjects.net
Author
15 May 2006 5:19 AM
Cor Ligthert [MVP]
George,

> Can you run SQL statement against a datatable and if so how?
>
No, there is worked at Linq that will be a kind of query language as SQL
however beter.

Cor

AddThis Social Bookmark Button