The (obsolete) DataAdapter can only accept on SelectCommand. While that
Command can contain several SELECT statements and these can have multiple
Parameters, it returns one resultset and generates one DataTable for each
rowset returned.
I expect what you need is a TableAdapter. This class can have several Fill
methods that can be programmed to return a rowset/DataTable given different
SELECT statements (as long as the same columns are returned) and different
Parameters.
--
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
http://betav.com http://betav.com/blog/billva
____________________________________________________________________________________________