Hi juli jul,
I would recommend doing this as a stored procedure and returning the results
as multiple select statements or multiple values.
<code>
CREATE PROCEDURE GetMutlipleTables
AS
SELECT Col1 FROM Table1
SELECT Col1 FROM Table2
SELECT Col1 FROM Table3
GO
</code>
This will return you a 3 table dataset that you can use any way you feel
fit. You can also return multiple values from multiple tables in one select
call also.
<code>
CREATE PROCEDURE GetMutlipleValues
AS
SELECT Table1.Col1 as 'FirstValue', Table2.Col1 as 'SecondValue',
Table3.Col3 as 'ThirdValue' FROM Table1, Table2, Table3
GO
</code>
Doing this on the C# side is not suggested.
HTH,
~d
"juli jul" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
> I am running in a loop ,doing some sql query (each time from another
> table) and the result of each query is int result.
> The problem is that the results suppose to be transfered to dataset ,and
> the question how do I actovate the sql query command in Adapter in a
> loop?
> Thanks a lot!
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!