RE: When to use DataAdapter's FillSchema?

From: Peter (Peter_at_discussions.microsoft.com)
Date: 08/24/04


Date: Tue, 24 Aug 2004 10:05:03 -0700

Wayne,

Thanks for the reply. When I generate a Dataset from my DataAdpater,
doesn't the dataset already match my table and isn't it empty until I fill
it? So, I am still alittle confused on this.

Thanks
Peter

"Wayne Froese" wrote:

> I've used the FillSchema when I want the Dataset to look like the *real* data
> but I don't actually need the data. For example, you can get an empty Table
> that would match your database.
>
> "Peter" wrote:
>
> > Hello,
> >
> > Thanks for reviewing my question. I am sure this is a simple one. When
> > would you want to use the DataAdapter's FillSchema method? What am I missing
> > out when I just use the Fill method? I created a form using two DataAdapters
> > and one Dataset that contains two tables. There is also a relationship
> > between the two. Is this the appropriate time to use FillSchema before
> > calling the Fill method?
> >
> > Many Thanks
> > Peter