Hi,

I have to add 40 records in 40 tables with my application (using strongly
typed dataset). Do I have to use 40 times the "Fill" method before adding
each record in the corresponding table ? If not, how can I do to give a new
value for the primary key to each record ?

thanx,
Ced

Re: strongly typed dataset by Willy

Willy
Fri Jul 11 13:22:20 CDT 2003

It depends what the data source is, right? If you're using SQL Sever, for
example, you could write a stored procedure that does the forty select
statements, create a sqldataadapter that uses that stored procedure in the
select and then do the fill. One caveat is that doing it that way your
tables will have generic names like Table1, Table2, etc.; but, those are
easily changed.

willy

"Ced" <zechu_REMOVETHIS_@hotmail.com> wrote in message
news:3f0e7449$0$295$ba620e4c@reader1.news.skynet.be...
> Hi,
>
> I have to add 40 records in 40 tables with my application (using strongly
> typed dataset). Do I have to use 40 times the "Fill" method before adding
> each record in the corresponding table ? If not, how can I do to give a
new
> value for the primary key to each record ?
>
> thanx,
> Ced
>
>