Hi

I think I've a simple question.
I'm using c# and have written a method that gets the dataset as an argument.
In this method I want to retrieve the used sql statement what was used for
building this dataset, is this possible ?
So I only have to dataset and want to retrieve the sqlstatement (eg select *
from customer)

Kris

Re: dataset questioin by Mary

Mary
Wed Sep 17 12:34:16 CDT 2003

Not unless you passed it along somehow as part of the data. the
DataSet is a local cache, and doesn't know anything about where the
data came from.

-- Mary
MCW Technologies
http://www.mcwtech.com

On Wed, 17 Sep 2003 20:14:35 +0200, "Nonkel Buck" <joske@ms.com>
wrote:

>Hi
>
>I think I've a simple question.
>I'm using c# and have written a method that gets the dataset as an argument.
>In this method I want to retrieve the used sql statement what was used for
>building this dataset, is this possible ?
>So I only have to dataset and want to retrieve the sqlstatement (eg select *
>from customer)
>
>Kris
>